Postfix luser_relay

6 posts / 0 new
Last post
#1 Fri, 05/22/2009 - 03:32
ronald
ronald's picture

Postfix luser_relay

so I created a mailbox to receive emails intended for non-existing users. This to prevent all kinds of bounce mails and reduce internet traffic

I entered this emailaddress in Postfix - Local delivery - Destination address for unknown recipients

but it doesn't work. Im getting the bounce notification back with the message: Recipient address rejected: User unknown in virtual alias table

Btw Im also seeing: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual in the maillog

Any ideas? Thanks

Fri, 05/22/2009 - 05:32
andreychek

Hmm, I wonder if perhaps Virtualmin didn't call postmap in all that.

What happens if you run:

postmap /etc/postfix/virtual

And then see if things work as expected.
-Eric

Fri, 05/22/2009 - 13:04 (Reply to #2)
ronald
ronald's picture

<div class='quote'>postmap /etc/postfix/virtual</div>
Doesn't give any output.

<div class='quote'>Bouncing it ... is way faster and more efficient</div>
yes, for now resources are not a big issue. Just wanted to do my part in reducing internet traffic, mainly from spammers

Fri, 05/22/2009 - 14:19 (Reply to #3)
Joe
Joe's picture

<div class='quote'>Just wanted to do my part in reducing internet traffic, mainly from spammers </div>

I don't think this is a good theory. The bounce happens instantly, and directly to the sending mail server (the one belonging to the spammer); the bandwidth usage is extremely minimal, and the resource usage dramatically lower. This isn't after-the-queue bounce, as it would be in qmail (without patches)...Postfix will reject it during the initial communication from the sending server. I think it's actually more efficient from a bandwidth perspective than accepting the mail (because I think Postfix stops it immediately after learning the message is for an address it cannot accept mail for), but I might be wrong about that.

--

Check out the forum guidelines!

Sat, 05/23/2009 - 00:43 (Reply to #4)
ronald
ronald's picture

aha so what you are saying is that because of the immediate bounce/reject Postfix does, the mail from the spammer isn't actually send. And if I was to accept it in some mailbox, it would be send.
In that case my idea isn't good at all.
Didn't realise that..thank you

Fri, 05/22/2009 - 12:18
Joe
Joe's picture

<div class='quote'>so I created a mailbox to receive emails intended for non-existing users. This to prevent all kinds of bounce mails and reduce internet traffic</div>

Immediate bounces are what prevents excess work on your system. If you accept the mail, you then have to process it, which is a huge amount of work for your system. Bouncing it right after &quot;Hi I want to email X&quot; and saying, &quot;No X here, go away!&quot; is way faster and more efficient.

--

Check out the forum guidelines!

Topic locked