Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix/cyrus sender notification if a mailbox doesn't exist
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
z0ny
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2005
Posts: 102
Location: Germany

PostPosted: Sat Jun 11, 2011 9:15 am    Post subject: Postfix/cyrus sender notification if a mailbox doesn't exist Reply with quote

Hello, I am running a postfix/cyrus setup for handling mails. Is there a way to not notify the sender if a mailbox doesn't exist (for spam reasons)? Thanks.
_________________
Old C programmers never die. They're just cast into void.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat Jun 11, 2011 3:33 pm    Post subject: Reply with quote

easiest way?

disable checks of local_recipient_maps, then set up luser_relay to go to a blackhole account (you'll have to arrange your own way for clearing this box out)

when I say disable local_recipient_maps, i mean set something like this in your main.cf

Code:

local_recipient_maps=
luser_relay=blackhole@yourdomain.com


yes, literally with nothing after the = sign

more reading:
http://www.postfix.org/postconf.5.html#luser_relay
http://www.postfix.org/postconf.5.html#local_recipient_maps

You would need to set up the blackhole mailbox in Cyrus before you did this, else you'd have cyrus rejecting the message at the post-acceptance LMTP phase, and end up generating backscatter.

Maybe there's a better way of doing this, but that's the quickest one that comes to mind. Postfix has loads of configuration options that'll reach this goal, in varying ways.

You could even set this http://www.postfix.org/postconf.5.html#smtpd_hard_error_limit

EDIT: actually, this is a really good read that outlines some of the pitfalls involved in doing this. I agree with their final conclusion, too, you probably aren't gaining much by not sending a 550 for invalid addresses - http://www.irbs.net/internet/postfix/0502/1581.html
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum