Hello, I've a container which needs to send mails to a server located in the internet via SMTP. Default outgoing behaviour is reject.
I started with an outgoing rule using the SMTPS-Macro and restricted the destination ip address. So far, so good; but it didn't work. So I removed the IP address restriction and left the SMTPS macro active. This worked.
So next I added the IPSet for the destination restriction again. Some mails went through, some not. I tried protocol tcp and port 465 as i suspected the SMTPS macro to be broken and after that I ended with this setup:
The IPSet "smtp" contains the following addresses in which the smtp server is located:
In the attached zip file you'll find four attempts to send e-mails with the rule shown above. The first 3 attempts were successful, the fourth one failed with 3 retransmissions.
The capture filter was 'tcpdump -n -i eth0 dst 81.169.145.133 or dst 2a01:238:20a:202:55f0::1133' for the current ip addresses of the foreign server.
What am i doing wrong here?
I started with an outgoing rule using the SMTPS-Macro and restricted the destination ip address. So far, so good; but it didn't work. So I removed the IP address restriction and left the SMTPS macro active. This worked.
So next I added the IPSet for the destination restriction again. Some mails went through, some not. I tried protocol tcp and port 465 as i suspected the SMTPS macro to be broken and after that I ended with this setup:
The IPSet "smtp" contains the following addresses in which the smtp server is located:
In the attached zip file you'll find four attempts to send e-mails with the rule shown above. The first 3 attempts were successful, the fourth one failed with 3 retransmissions.
The capture filter was 'tcpdump -n -i eth0 dst 81.169.145.133 or dst 2a01:238:20a:202:55f0::1133' for the current ip addresses of the foreign server.
What am i doing wrong here?
Attachments
Last edited: