[Bug 231046] mail/ssmtp 2.64 doesnt send final ack - delays mail server with hanging LAST_ACT on FreeBSD11.2S

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 31 03:21:40 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231046

            Bug ID: 231046
           Summary: mail/ssmtp 2.64 doesnt send final ack - delays mail
                    server with hanging LAST_ACT on FreeBSD11.2S
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: dewayne at heuristicsystems.com.au
                CC: aragon at phat.za.net
                CC: aragon at phat.za.net
             Flags: maintainer-feedback?(aragon at phat.za.net)

Unsure if this is an implementation issue or something around traffic flow.

situation:
Multiple messages being sent with ssmtp.  When the server starts rejecting
messages due to connection rate setting, there are pending LAST_ACKs; which
ssmtp should ack before terminating.  Instead ssmtp just stops.

Resulting in sockstat -s revealing
root     sendmail   31777 5  tcp4   127.0.5.91:2525       127.0.5.91:41596     
ESTABLISHED
root     sendmail   31777 11 tcp4   127.0.5.91:2525       127.0.5.91:41596     
ESTABLISHED
root     ssmtp      31603 3  tcp4   127.0.5.91:36347      127.0.5.91:2525      
ESTABLISHED
root     ssmtp      31381 3  tcp4   127.0.5.91:58319      127.0.5.91:2525      
ESTABLISHED
root     ssmtp      31257 3  tcp4   127.0.5.91:41596      127.0.5.91:2525      
ESTABLISHED
root     sendmail   39991 9  tcp4   127.0.5.91:2525       *:*                  
LISTEN
?        ?          ?     ?  tcp4   127.0.5.91:2525       127.0.5.91:31082     
LAST_ACK
?        ?          ?     ?  tcp4   127.0.5.91:2525       127.0.5.91:55470     
LAST_ACK
?        ?          ?     ?  tcp4   127.0.5.91:2525       127.0.5.91:28956     
LAST_ACK

The problem is that sendmail wont respond to new connections until the LAST_ACK
timeouts.  

Workaround - increase number of connections to that particular port 2525 which
is only for administrative email.  Aside: there are multiple jails transmitting
to the sendmail (latest version) jail via lo0.  It just appears to be coming
over its "localhost" addr.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list