| |||||||||||||||||||||||||||||||
|
Hash: SHA1 [cc'd to list. Please reply to list.] Babu M wrote: > Sir below is advised by u. Please let me know how to redirect mails from > MAILER-DAEMON to 1 <mailto:1> & 2 > <mailto:2>. > thank u. > > Bissio wrote: >> Thanks for answers, > >> My problem still exists... I need to block every message thaat comes >> from MAILER-DAEMON@somesomains or postmaster@somedomains to some of my >> accounts and for this i use: smtpd_restriction_classes and it works >> fine, but if the filed Return-Path is empty, the messages are delivered. >> Is there a way to block these messages for these accounts? > > Do not block the messages. It is considered bad manners and certainly will > not make anyone your friend. > > Accept the messages and route them to /dev/null. Doing that means you will > miss messages you should see, Guaranteed! > > How about routing such messages to some other account instead? > > It might be helpful to explain why you do not want to receive messages from > mailer daemons and postmasters. > > -- > jd > jdeb... <mailto:jdeb...> > You can forward incoming mail (from outside world) using on header checks: /etc/postfix/header_checks: /^From: MAILER-DAEMON@/ REDIRECT somebody /^From: postmaster@/ REDIRECT somebody-else . . . /etc/postfix/main.cf: header_checks = regexp:/etc/postfix/header_checks Read: http://www.postfix.org/CONTENT_INSPECTION_README.html http://www.postfix.org/BUILTIN_FILTER_README.html Read this thread, also: "How to drop any (external) mail to root,administrator,webmaster and so on?" 12 Nov 2007 == jd -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFHOh8fhpL3F+HeDrIRAqGdAJ9BQpXztcb6Mb1k+kn93fsWvqduuQCfe2al 4RF1ggD6vfbzOmiizqjyh2g= =JCV0 -----END PGP SIGNATURE-----
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com