• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

emails sent with webmail are rejected by Qmail when destinatin on same server

philippe henneau

Basic Pleskian
Email A & B hosetd on same server.

A sends email to B from iphone or any client SW: mail is delivered to B

A send email to B from webmail: Mail bounces back to A "this address no longer accepts mail".

From maillog:

Jan 2 01:55:21 prod1 imapd: Connection, ip=[127.0.0.1]
Jan 2 01:55:21 prod1 imapd: IMAP connect from @ [127.0.0.1]INFO: LOGIN, user=A, ip=[127.0.0.1], protocol=IMAP
Jan 2 01:55:21 prod1 imapd: 1262393721.110071 LOGOUT, user=A, ip=[127.0.0.1], headers=0, body=0, rcvd=61, sent=529, maildir=/var/qmail/mailnames/Domain(A)/User(A)/Maildir
Jan 2 01:55:42 prod1 imapd: Connection, ip=[127.0.0.1]
Jan 2 01:55:42 prod1 imapd: IMAP connect from @ [127.0.0.1]INFO: LOGIN, user=A, ip=[127.0.0.1], protocol=IMAP
Jan 2 01:55:42 prod1 qmail-queue-handlers[22247]: Handlers Filter before-queue for qmail started ...
Jan 2 01:55:42 prod1 qmail-queue-handlers[22247]: from=A
Jan 2 01:55:42 prod1 qmail-queue-handlers[22247]: to=B
Jan 2 01:55:42 prod1 qmail-queue-handlers[22247]: hook_dir = '/usr/local/psa/handlers/before-queue'
Jan 2 01:55:42 prod1 qmail-queue-handlers[22247]: recipient[3] = 'B'
Jan 2 01:55:42 prod1 qmail-queue-handlers[22247]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/B'
Jan 2 01:55:42 prod1 qmail-queue-handlers[22247]: starter: submitter[22248] exited normally
Jan 2 01:55:42 prod1 qmail: 1262393742.562316 new msg 113642040
Jan 2 01:55:42 prod1 qmail: 1262393742.562345 info msg 113642040: bytes 674 from <A> qp 22248 uid 48
Jan 2 01:55:42 prod1 imapd: 1262393742.750973 LOGOUT, user=A, ip=[127.0.0.1], headers=0, body=0, rcvd=677, sent=587, maildir=/var/qmail/mailnames/domain(A)/user(A)/Maildir
Jan 2 01:55:42 prod1 qmail: 1262393742.754512 starting delivery 146: msg 113642040 to local 19-B
Jan 2 01:55:42 prod1 qmail: 1262393742.754625 status: local 1/10 remote 0/20
Jan 2 01:55:42 prod1 qmail-local-handlers[22249]: Handlers Filter before-local for qmail started ...
Jan 2 01:55:42 prod1 qmail-local-handlers[22249]: from=A
Jan 2 01:55:42 prod1 qmail-local-handlers[22249]: to=B
Jan 2 01:55:42 prod1 qmail-local-handlers[22249]: mailbox: /var/qmail/mailnames/B
Jan 2 01:55:42 prod1 qmail-local-handlers[22249]: hook_dir = '/usr/local/psa/handlers/before-local'
Jan 2 01:55:42 prod1 qmail-local-handlers[22249]: recipient[3] = 'B'
Jan 2 01:55:42 prod1 qmail-local-handlers[22249]: handlers dir = '/usr/local/psa/handlers/before-local/recipient/B'
Jan 2 01:55:42 prod1 qmail: 1262393742.781065 delivery 146: failure: This_address_no_longer_accepts_mail./



We try by disabling anti-virus, anti-spam.... doesnt help.
Greylist is disabled and 127.0.01/8 in white list of email server

Any Idea?

Regards,

Philippe
 
Did you tried to rebuild mailsettings with 'mchk --with-spam' ?
Also try to check and set permissions for hooks like:
root@www:/usr/local/psa/handlers/hooks# chmod o+rx *
root@www:/usr/local/psa/handlers/hooks# ls -l
total 440
-r-xr-xr-x 1 root popuser 32304 2009-10-09 13:52 autoresponder
-r-xr-xr-x 1 root popuser 28408 2009-10-09 13:52 deliver-quota
-r-xr-xr-x 1 root popuser 35960 2009-10-09 13:55 dk_check
-r-xr-xr-x 1 root popuser 35984 2009-10-09 13:55 dk_sign
-r-sr-xr-x 1 drweb popuser 181240 2009-10-09 13:57 drweb
-r-sr-xr-x 1 root popuser 48864 2009-10-09 13:55 grey
-r-xr-xr-x 1 root popuser 32768 2009-10-09 13:53 spam
-r-xr-xr-x 1 root popuser 25568 2009-10-09 13:55 spf
-r-xr-xr-x 1 root popuser 12648 2009-10-09 13:52 test
 
Back
Top