![]() ![]() The last line shows that the message was sent to the null transport, and since the null transport has no way of going anywhere, that’s where it ends. To=, relay=null, delay=0, status=sent (*) Test sending some mail while watching the mail log, and you should see lines like: You should now be able to restart postfix using: Transport_maps = hash:/etc/postfix/transport User=nobody argv=]/null.sh $Īnd finally, you need the following line in /etc/postfix/main.cf, which gives the path to the transport map that we defined above. Substitute your path to the null shell script for ] This is the definition of the null transport. Run the following command to rebuild the transport map:Īdd the following lines to /etc/postfix/master.cf. This even redirects the local mailer to your null script, so nothing gets delivered. You want to set it up as a normal internet mail host operation if given the choice.Ī shell script null.sh in an accessible directory with the contents:Įdit /etc/postfix/transport to include the following line, which sends all domains to the null transport. ![]() ![]() This will vary from system to system, but it’s known to work on most unixen, including OSX. The first step is to get postfix installed. Now all of my systems are running postfix, so it was time for a little updating. My last email blackhole was on a linux box running qmail, but unfortunately that box was rooted and reformated. Maybe you want a honeypot, or maybe you want to load test email lists without annoying people. Sometimes you just need a machine that you can throw email at and have it dissappear into the ether. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |