Sebastian Tennant
2007-Apr-27 17:50 UTC
[Pkg-exim4-users] What happens to unrouteable mail?
Hi all, Something of a daft question no doubt, but how can I send a load of mail to /dev/null? I''m running an out-of-the-box Exim4 on Debian. Fetchmail polls my ISP domain and mops up all the spam before handing it to Exim addressed to ''junk@localhost''. I could create a user ''junk'' and create a symlink /var/mail/junk pointing to /dev/null but no doubt there''s a cleaner way. Any ideas much appreciated? Sebastian
On Friday 27 April 2007 18:41, Sebastian Tennant wrote:> Something of a daft question no doubt, but how can I send a load of > mail to /dev/null? > > I''m running an out-of-the-box Exim4 on Debian. > > Fetchmail polls my ISP domain and mops up all the spam before handing > it to Exim addressed to ''junk@localhost''.Short answer: Put the following in /etc/aliases: junk: :blackhole: Long answer: You don''t want to dump mail in the bit bucket unseen. Are you absolutely sure that you won''t ever throw away valid mail? -- Magnus Holmgren holmgren@lysator.liu.se (No Cc of list mail needed, thanks) "Exim is better at being younger, whereas sendmail is better for Scrabble (50 point bonus for clearing your rack)" -- Dave Evans -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/pkg-exim4-users/attachments/20070427/af06f2da/attachment.pgp
Sebastian Tennant
2007-Apr-27 18:41 UTC
[Pkg-exim4-users] Re: What happens to unrouteable mail?
Quoth Magnus Holmgren <holmgren@lysator.liu.se>:> On Friday 27 April 2007 18:41, Sebastian Tennant wrote: >> Something of a daft question no doubt, but how can I send a load of >> mail to /dev/null? >> >> I''m running an out-of-the-box Exim4 on Debian. >> >> Fetchmail polls my ISP domain and mops up all the spam before handing >> it to Exim addressed to ''junk@localhost''. > > Short answer: Put the following in /etc/aliases: > > junk: :blackhole: > > Long answer: You don''t want to dump mail in the bit bucket unseen. Are you > absolutely sure that you won''t ever throw away valid mail?Yes, I am. Valid local parts are routed elsewhere. Thanks for your help. It works a treat. Sebastian