-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 20-Nov-2002/11:14 +0800, Edward Dekkers <[EMAIL PROTECTED]> wrote:
>On my system, when fetchmail fetches mail from my ISP, it won't flush mail
>coming from an unresolvable domain. Hence it sists there till I delete it
>manually at the ISP server end. I CAN set sendmail to accept unresolvable
>domains, but I don't really want to fill mailboxes with what is ofcourse,
>spam.
>
>If I was to allow sendmail to accept the unresolvable domains, can I then
>check for an unresolvable domain with procmail and /dev/null it?
>
>Is there a nice clean way of doing this?


Yes. Tell fetchmail to skip sendmail and deliver directly to procmail.

In the default config, fetchmail delivers via SMTP to localhost:25. You
can tell it to deliver to a specific mail delivery agent using the "mda"
option in ~/.fetchmailrc:

defaults protocol POP3 fetchall nokeep mda "procmail -d $LOGNAME"
poll mail.isp.com   username myusername   password mypassword


If you need to deliver to multiple users, or if there are local aliases
that you want sendmail to handle, then you won't be able to use this
method. It does work well for individual users who run fetchmail to get
their mail.

Tony
- -- 
Anthony E. Greene <mailto:[EMAIL PROTECTED]>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Chat: TonyG05      HomePage: <http://www.pobox.com/~agreene/>
Linux: the choice of a GNU Generation. <http://www.linux.org/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene 0x6C94239D <[EMAIL PROTECTED]>

iD8DBQE924OxpCpg3WyUI50RAkC9AKCUtRspnoeSPbWpgTiOpa1MMeMlNQCeIqf7
DO0YhjqJexUONqN4S5zAO4Q=
=wOqH
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to