[7.450][BUG][NOTABUG] DNAT for SMTP works intermittently

Interesting problem. I installed the beta last week. I started to notice that not all my SMTP mail is coming in. 

Some message get through but not all and they queue up on my upstream host.

I have a DNAT rule for the built in SMTP definition to my internal mail server.

My SMTP proxy is off and I could not connect from an external host on port 25 at all. Have made a new definition for Port 26 and set my upstream host to route to port 26. Mail is flowing now no problem.
Parents
  • A DNAT rule for port 25 should not interfere smtp traffic at all.

    >> My SMTP proxy is off and I could not connect from an external host on port 25 at all.
    Can you see that this connection is dropped in  the packetfilter.log?
  • A DNAT rule for port 25 should not interfere smtp traffic at all.


    I'm not sure what you mean...

    Cheers - Bob
  • This means you should not expect problems with a DNAT of port 25 as
    I have such a setup working here version 7.450 which works seamless.

    Interesting to know is where the connection stops or gets interrupted.

    What I would do to figure out.
    * Add logging to the NAT rule, which will actually be logged with fwmark="0"
    * Look in the packetfilter.log if the connection is dropped or accepted.
    * Check with tcpdump if the connection is forwarded and NAted.
    * check if the NAT rule and the forward rules are set.
    * check selfmon.log for eventuell service restarts
    * check /tmp/mdwdebug.log /tmp/confd-debug.log

    If you describe your setup more precisely I'd help
    with the command lines.
    Or you may send me a ASG backup via PM and I dig into the configuration myself.
Reply
  • This means you should not expect problems with a DNAT of port 25 as
    I have such a setup working here version 7.450 which works seamless.

    Interesting to know is where the connection stops or gets interrupted.

    What I would do to figure out.
    * Add logging to the NAT rule, which will actually be logged with fwmark="0"
    * Look in the packetfilter.log if the connection is dropped or accepted.
    * Check with tcpdump if the connection is forwarded and NAted.
    * check if the NAT rule and the forward rules are set.
    * check selfmon.log for eventuell service restarts
    * check /tmp/mdwdebug.log /tmp/confd-debug.log

    If you describe your setup more precisely I'd help
    with the command lines.
    Or you may send me a ASG backup via PM and I dig into the configuration myself.
Children