RES: RES: RES: Deny outbound connections

From: Danilo Montagna - NetworkBrasil (no email)
Date: Mon Nov 01 2004 - 14:01:35 EST


Postfix version = 2.1.5

mydestination = $myhostname, $mydomain, $transport_maps
transport_maps = mysql:/etc/postfix/mysql_transport_maps.cf
unknown_local_recipient_reject_code = 550
relay_recipient_maps = $virtual_mailbox_maps
failback_transport = /ust/bin/maildrop
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:108
virtual_mailbox_base = /postfix
virtual_mailbox_limit = 25000000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_uid_maps = static:108

>Why are your virtual mailbox users in "relay_domains"?

My virtual mailbox users aren't in "relay_domains". My relay control are
taken by $transport_maps in "mydestination" line. Like you can see above..

If the final destination domain is listed on mysql_transport_maps.cf, then
the relay will be accepted. If the domain isn't there, they will get a
"relay access denied" ..

Like I said before, my postfix setup don't have problems.. The only problem
that a had was to reject unknown mail users..

my environment: postfix+mysql+clamav+maildrop

When an outbound smtp server tried to send a message to unknown users,
maildrop replies with the error: Invalid user specified.

And a bounce message was sent back to sender.. without success, because
almost the time the MX destination does not exist.. sure. It is a SPAMMER..

I found on some forums that the problem is because the use of maildrop and
failback_transport = /ust/bin/maildrop

When I put the option: relay_recipient_maps = $virtual_mailbox_maps

Everything works fine..

Now, when a smtp tries to send a message to an unknown user, my postfix
replies whit this:

Recipient address rejected: User unknown in local recipient table.

I don't really now if is the best way to solve the problem.. but its works
fine to me, and the most important is that a solve my problem..

Sorry about my English, I'm trying to get better.

Best Regards,

Danilo.

> main.cf:
>
> relay_recipient_maps = $virtual_mailbox_maps
>

This is not an explanation. What version of Postfix are you using.
What is the complete set of explicit main.cf settings ("postconf -n"
output). Why are your virtual mailbox users in "relay_domains"? It
looks like you have failed to set "virtual_mailbox_domains" correctly,
and are avoiding the real problem by enabling relay recipient validation.

-- 
	Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:?body=unsubscribe%20postfix-users>







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD