OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
relay_transport

From: Benjamin GERARD (GERARDaltheys.com)
Date: Thu Jan 17 2008 - 03:57:04 CST


Hi,

I've got a problem with the parameter relay_transport .

I host one domain and relay 5 others domains .

I use amavisd-new to fight spams .

But I would like that the 5 others domains bypass the antispam .

My main.cf is

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
myhostname = domainhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = domainhost, , localhost.ovh.net, localhost
relayhost =
relay_domain = relay_domain1, relay_domain2, relay_domain3,
relay_domain4, relay_domain5,
relay_transport = hash:/etc/postfix/transport
mynetworks = localhost.localdomain 127.0.0.0/8 ip_relay_domain1
ip_relay_domain2 ip_relay_domain3 ip_relay_domain4 ip_relay_domain5
content_filter = smtp-amavis:[127.0.0.1]:10024
mailbox_command = /usr/bin/procmail
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
#home_mailbox = Maildir/

My /etc/postfix/transport is

Relay_domain1 smtp:[127.0.0.1:10025]
Relay_domain2 smtp:[127.0.0.1:10025]
Relay_domain3 smtp:[127.0.0.1:10025]
Relay_domain4 smtp:[127.0.0.1:10025]
Relay_domain5 smtp:[127.0.0.1:10025]

My master.cf is

smtp-amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes

127.0.0.1:10025 inet n - y - - smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
            -o smtpd_client_restrictions=
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes

But all mail passing through antispam (of course domain_host but
relay_domain1, relay_domain2 , ... too ) .

Could You help me ?

Best regard

Benjamin