|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
relay_recipients ignored?
From: Arne Van Theemsche (arne.vantheemsche
evonet.be)
Date: Mon Jul 24 2006 - 05:14:53 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi
I'm working on a setup where my postfix who's receiving the domains, is
deciding on basis of a transport_maps if mail should be spam scanned or
not...
therefor i modified some satements in the amavis-postfix howto...
master.cf now looks like this
smtp inet n - n - - smtpd
-o relay_domains=hash:/usr/local/postfix-data/relay_domains
-o relay_recipient_maps=hash:/usr/local/postfix-data/relay_addresses
-o transport_maps=hash:/usr/local/postfix-data/transportmap
-o disable_dns_lookups=yes ## added this but result is the same
127.0.0.1:10025 inet n - n - - smtpd
-o virtual_mailbox_domains =
hash:/usr/local/postfix-data/virtdomains
-o virtual_mailbox_base = <blabla>
-o virtual_mailbox_maps = hash:/usr/local/postfix-data/virtaddresses
-o virtual_alias_maps = hash:/usr/local/postfix-data/virtalias
-o virtual_uid_maps = static:5000
-o virtual_gid_maps = static:5000
-o mailbox_command_maps = hash:/usr/local/postfix-data/localmailers
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_delay_reject=no
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o smtpd_data_restrictions=reject_unauth_pipelining
-o smtpd_end_of_data_restrictions=
-o mynetworks=127.0.0.0/8,<localip>/24
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o smtpd_client_connection_count_limit=0
-o smtpd_client_connection_rate_limit=0
-o
receive_override_options=no_header_body_checks,no_unknown_recipient_checks
what I want to achieve is this: mail gets recieved by the daemon on port
25. For every domain I host, I make sure we just relay for. Then the
transport_maps are used to decide if user
virthost.com should be
filtered (sent to amavis) or not (sent to port 10025) directly. the
daemon 10025 does the translation, the :25 daemon does just relaying.
But i keep getting the "mail loops back to me" messages on :25...
Also I noted that the relay_recipients is just ignored, when sending
manual smtp commands, the process get just beyond the rcpt to:, while
it's not supposed to...
any thought here? the stuff in main.cf seems rather standard to me...
thanks
Arne
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]