Hi,

I have a question to the relay function.

When I have an fqdn: smtp.domain.tld with two IPs, an A and an AAAA
record and I also use ClamSMTP before.

How can I use IPv4 and IPv6 for relay depending on the receiver host?

...
listen on lo0 port 25 tls pki smtp.domain.tld tag new_in
# maybe later also on ::1, when spamd supports IPv6

listen on re0 secure pki smtp.domain.tld auth tag new_in mask-source
listen on 127.0.0.1 port 10026 tag after_clam

table aliases file:/etc/mail/aliases
table domains file:/etc/mail/domains
table vusers  file:/etc/mail/vusers

accept from local for local alias <aliases> deliver to lmtp
"/var/dovecot/lmtp"
accept from local for local deliver to lmtp "/var/dovecot/lmtp"

accept tagged new_in from any for domain <domains> relay via
smtp://127.0.0.1:10025 hostname clamsmtpd source 127.0.0.1

accept tagged after_clam from any for domain <domains> virtual <vusers>
deliver to lmtp "/var/dovecot/lmtp"

accept from local for domain <domains> relay via smtp://127.0.0.1:10025
hostname clamsmtpd source 127.0.0.1

accept tagged new_in for any relay via smtp://127.0.0.1:10025



# here is the issue:
# how can I tell IPv4 and IPv6 adress and hostname?
accept tagged after_clam for any relay source [IPv4|IPv6] hostname
smtp.domain.tld tls

OpenSMTP is not accepting two source IPs.

How can I do this?

Thanks
 -Heiko

-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to