1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

qmail configuration problem

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Andres Ba, Jul 29, 2010.

  1. Andres Ba

    Andres Ba Guest

    0
     
    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]: from=root@example.com
    Jul 30 02:54:06 host14-199-110-95 qmail-queue-handlers[8232]: to=test@example.org
    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] = 'test@example.org'
    Jul 30 02:54:06 host14-199-110-95 qmail-queue-handlers[8232]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/test@example.org'
    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 <root@example.com> 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 test@example.org
    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]: from=root@example.com
    Jul 30 02:54:06 host14-199-110-95 qmail-remote-handlers[8234]: to=test@example.org
    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] = 'test@example.org'
    Jul 30 02:54:06 host14-199-110-95 qmail-remote-handlers[8234]: handlers dir = '/usr/local/psa/handlers/before-remote/recipient/test@example.org'
    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]: from=root@example.com
    Jul 30 02:46:58 host14-199-110-95 qmail-queue-handlers[7634]: to=test@example.org
    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] = 'test@example.org'
    Jul 30 02:46:58 host14-199-110-95 qmail-queue-handlers[7634]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/test@example.org'
    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 <root@example.com> qp 7635 uid 0
    Jul 30 02:46:58 host14-199-110-95 qmail: 1280450818.319789 starting delivery 4215: msg 1474577 to remote test@example.org
    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]: from=root@example.com
    Jul 30 02:46:58 host14-199-110-95 qmail-remote-handlers[7636]: to=test@example.org
    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] = 'test@example.org'
    Jul 30 02:46:58 host14-199-110-95 qmail-remote-handlers[7636]: handlers dir = '/usr/local/psa/handlers/before-remote/recipient/test@example.org'
    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
     
  2. Andres Ba

    Andres Ba Guest

    0
     
    Adding the last lines of the tethereal capture:

    0.338697 [qmail ip] -> [senderl ip] SMTP S: 250 2.1.0 <root@example.com>... Sender ok
    0.338756 [senderl ip] -> [qmail ip] SMTP C: RCPT TO:<test@example.org>
    0.373292 [qmail ip] -> [senderl ip] SMTP S: 250 2.1.5 <test@example.org>... 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
     
Loading...