• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

qmail configuration problem

A

Andres Ba

Guest
Hi,
I'm having some problems with qmail: it does not seem to be able to send emails to my university, but I do not see any meaninful error message in the log.

I tried to send emails in 3 different ways: by telneting to the university's email server (works), by using plesk's qmail without configuration changes, by using plesk's qmail and forcing the route in smtproutes.

1) If I telnet to port 25 on my university's email server from my own server, it works

2) if I try to use qmail, it doesn't work:
Jul 30 02:54:06 host14-199-110-95 qmail-queue-handlers[8232]: Handlers Filter before-queue for qmail started ...
Jul 30 02:54:06 host14-199-110-95 qmail-queue-handlers[8232]: [email protected]
Jul 30 02:54:06 host14-199-110-95 qmail-queue-handlers[8232]: [email protected]
Jul 30 02:54:06 host14-199-110-95 qmail-queue-handlers[8232]: hook_dir = '/usr/local/psa/handlers/before-queue'
Jul 30 02:54:06 host14-199-110-95 qmail-queue-handlers[8232]: recipient[3] = '[email protected]'
Jul 30 02:54:06 host14-199-110-95 qmail-queue-handlers[8232]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/[email protected]'
Jul 30 02:54:06 host14-199-110-95 qmail: 1280451246.574322 new msg 1671187
Jul 30 02:54:06 host14-199-110-95 qmail: 1280451246.574389 info msg 1671187: bytes 315 from <[email protected]> qp 8233 uid 0
Jul 30 02:54:06 host14-199-110-95 qmail-queue-handlers[8232]: starter: submitter[8233] exited normally
Jul 30 02:54:06 host14-199-110-95 qmail: 1280451246.583616 starting delivery 4315: msg 1671187 to remote [email protected]
Jul 30 02:54:06 host14-199-110-95 qmail: 1280451246.583678 status: local 0/10 remote 2/20
Jul 30 02:54:06 host14-199-110-95 qmail-remote-handlers[8234]: Handlers Filter before-remote for qmail started ...
Jul 30 02:54:06 host14-199-110-95 qmail-remote-handlers[8234]: [email protected]
Jul 30 02:54:06 host14-199-110-95 qmail-remote-handlers[8234]: [email protected]
Jul 30 02:54:06 host14-199-110-95 qmail-remote-handlers[8234]: hook_dir = '/usr/local/psa/handlers/before-remote'
Jul 30 02:54:06 host14-199-110-95 qmail-remote-handlers[8234]: recipient[3] = '[email protected]'
Jul 30 02:54:06 host14-199-110-95 qmail-remote-handlers[8234]: handlers dir = '/usr/local/psa/handlers/before-remote/recipient/[email protected]'
Jul 30 02:54:07 host14-199-110-95 qmail: 1280451247.140363 delivery 4315: success: [ip address]_accepted_message./Remote_host_said:_250_2.0.0_o6U0s6N6025571_Message_accepted_for_delivery/

2) If I try to use smtproutes forcing qmail to use the very email server to which I'm telneting successfully, it doesn't work:

Jul 30 02:46:58 host14-199-110-95 qmail-queue-handlers[7634]: Handlers Filter before-queue for qmail started ...
Jul 30 02:46:58 host14-199-110-95 qmail-queue-handlers[7634]: [email protected]
Jul 30 02:46:58 host14-199-110-95 qmail-queue-handlers[7634]: [email protected]
Jul 30 02:46:58 host14-199-110-95 qmail-queue-handlers[7634]: hook_dir = '/usr/local/psa/handlers/before-queue'
Jul 30 02:46:58 host14-199-110-95 qmail-queue-handlers[7634]: recipient[3] = '[email protected]'
Jul 30 02:46:58 host14-199-110-95 qmail-queue-handlers[7634]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/[email protected]'
Jul 30 02:46:58 host14-199-110-95 qmail-queue-handlers[7634]: starter: submitter[7635] exited normally
Jul 30 02:46:58 host14-199-110-95 qmail: 1280450818.309713 new msg 1474577
Jul 30 02:46:58 host14-199-110-95 qmail: 1280450818.309796 info msg 1474577: bytes 315 from <[email protected]> qp 7635 uid 0
Jul 30 02:46:58 host14-199-110-95 qmail: 1280450818.319789 starting delivery 4215: msg 1474577 to remote [email protected]
Jul 30 02:46:58 host14-199-110-95 qmail: 1280450818.320911 status: local 0/10 remote 2/20
Jul 30 02:46:58 host14-199-110-95 qmail-remote-handlers[7636]: Handlers Filter before-remote for qmail started ...
Jul 30 02:46:58 host14-199-110-95 qmail-remote-handlers[7636]: [email protected]
Jul 30 02:46:58 host14-199-110-95 qmail-remote-handlers[7636]: [email protected]
Jul 30 02:46:58 host14-199-110-95 qmail-remote-handlers[7636]: hook_dir = '/usr/local/psa/handlers/before-remote'
Jul 30 02:46:58 host14-199-110-95 qmail-remote-handlers[7636]: recipient[3] = '[email protected]'
Jul 30 02:46:58 host14-199-110-95 qmail-remote-handlers[7636]: handlers dir = '/usr/local/psa/handlers/before-remote/recipient/[email protected]'
Jul 30 02:46:58 host14-199-110-95 qmail: 1280450818.819998 delivery 4215: success: [ip address]_accepted_message./Remote_host_said:_250_2.0.0_o6U0kwN6024785_Message_accepted_for_delivery/

Both log entries are identical, actually.

Any ideas on why the messages are not delivered? As I can send messages through telnet, I would think there's a problem in qmail's configuration.

Thanks in advance,

Andres
 
Adding the last lines of the tethereal capture:

0.338697 [qmail ip] -> [senderl ip] SMTP S: 250 2.1.0 <[email protected]>... Sender ok
0.338756 [senderl ip] -> [qmail ip] SMTP C: RCPT TO:<[email protected]>
0.373292 [qmail ip] -> [senderl ip] SMTP S: 250 2.1.5 <[email protected]>... Recipient ok
0.373352 [senderl ip] -> [qmail ip] SMTP C: DATA
0.405744 [qmail ip] -> [senderl ip] SMTP S: 354 Enter mail, end with "." on a line by itself
0.405819 [senderl ip] -> [qmail ip] SMTP C: .
0.496946 [qmail ip] -> [senderl ip] SMTP S: 250 2.0.0 o6U2rfN6009549 Message accepted for delivery
0.497974 [senderl ip] -> [qmail ip] SMTP C: QUIT
0.498182 [senderl ip] -> [qmail ip] TCP 58937 > smtp [FIN, ACK] Seq=497 Ack=564 Win=6912 Len=0 TSV=3097116 TSER=220674657
0.530537 [qmail ip] -> [senderl ip] TCP smtp > 58937 [ACK] Seq=564 Ack=498 Win=48902 Len=0 TSV=220674660 TSER=3097116
0.530610 [qmail ip] -> [senderl ip] SMTP S: 221 2.0.0 sinclair.uel.ac.uk closing connection
0.530629 [senderl ip] -> [qmail ip] TCP 58937 > smtp [RST] Seq=498 Win=0 Len=0
0.530790 [qmail ip] -> [senderl ip] TCP smtp > 58937 [FIN, ACK] Seq=613 Ack=498 Win=48902 Len=0 TSV=220674660 TSER=3097116
0.530808 [senderl ip] -> [qmail ip] TCP 58937 > smtp [RST] Seq=498 Win=0 Len=0

Thanks in advance,

Andres
 
Back
Top