|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re[2]: /dev/null'ing mail without local delivery
From: Andrew Diederich (andrewdied
gmail.com)
Date: Wed Nov 15 2006 - 16:32:33 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello Evan,
Wednesday, November 15, 2006, 2:47:20 PM, you wrote:
> At 01:23 PM 11/15/2006, you wrote:
>>I have an email address used by development that they want to send
>>mail to, but never have to receive that email. I disabled local
>>delivery on my postfix server because that server is only a mail
>>gateway -- it uses transport maps to redirect mail to an internal
>>non-postfix server.
>>
>>Is it possible to /dev/null email without local delivery? I searched
>>through www.postfix.org and the Book of Postfix with no success.
> I'm far from a expert, but I just tried adding to my aliases:
> devnull:/dev/null
> Nov 15 13:44:14 localhost postfix/local[29041]: 165D2A651EB:
> to=<devnull
espphotography.com>, relay=local, delay=1, status=sent
> (delivered to file: /dev/null)
> Not sure if that will break anything, or if that will work for your setup...
Your example uses the local delivery agent, unfortunately
(relay=local). From the overview
(http://www.postfix.org/OVERVIEW.html#delivering) it looks like I
could use the virtual delivery agent to deliver to a file. I'm not
sure how to do that, though. My mail delivery is really controlled
through virtual_alias_maps, and I haven't set any other virtual
settings:
$ postconf -n | grep virtual
virtual_alias_maps = hash:/etc/postfix/virtual
Mixing virtual delivery with virtual_alias_maps seems like a bad idea,
though.
--
Best regards,
Andrew
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]