• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue psa-pc-remote: Incorrect recipient mailname

Barungar

New Pleskian
Hi,

I've a problem with sending mail from a php-based forum software. The mail is send via smtp, delivered to port 587 using a user/password login. The forum software sends the mails in formated address style: User-name <[email protected]>

Every Username that contains certain characters is rejected! So far I have identified "-" and "\" for being rejected. The characters occure in the user's name, not in his smtp address. The user in question is "a-bulas" so the formated mail should look like "a-bulas <[email protected]>".

The issue is noted with "psa-pc-remote[21388]: Incorrect recipient mailname : a-bulas" which then results in "5.7.1 Command rejected". Where is the root of my problem? And what can I do to resolve it?

Generally mails are send and delivered without any issues, only if some characters occure in the user's name this issue arises.

Below is part of the /var/mail/maillog:
Code:
Jun 15 14:13:55 mimir postfix/smtpd[17372]: connect from mimir.example.de[2a01:xxx:yy:1000:b01c:143e:0:1]
Jun 15 14:13:55 mimir postfix/smtpd[17372]: B87BFC1CC4: client=mimir.example.de[2a01:xxx:yy:1000:b01c:143e:0:1], sasl_method=LOGIN, [email protected]
Jun 15 14:13:55 mimir /usr/lib64/plesk-9.0/psa-pc-remote[21388]: Unable to get sender domain by sender mailname
Jun 15 14:13:55 mimir /usr/lib64/plesk-9.0/psa-pc-remote[21388]: Unable to get sender domain by sender mailname
Jun 15 14:13:55 mimir /usr/lib64/plesk-9.0/psa-pc-remote[21388]: Unable to get sender domain by sender mailname
Jun 15 14:13:55 mimir postfix/cleanup[17375]: B87BFC1CC4: message-id=<[email protected]>
Jun 15 14:13:55 mimir check-quota[17380]: Starting the check-quota filter...
Jun 15 14:13:55 mimir /usr/lib64/plesk-9.0/psa-pc-remote[21388]: handlers_stderr: SKIP
Jun 15 14:13:55 mimir /usr/lib64/plesk-9.0/psa-pc-remote[21388]: SKIP during call 'check-quota' handler
Jun 15 14:13:55 mimir /usr/lib64/plesk-9.0/psa-pc-remote[21388]: Incorrect recipient mailname : a-bulas
Jun 15 14:13:55 mimir postfix/cleanup[17375]: B87BFC1CC4: milter-reject: END-OF-MESSAGE from mimir.example.de[2a01:xxx:yy:1000:b01c:143e:0:1]: 5.7.1 Command rejected; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<www.example.de>
Jun 15 14:13:55 mimir postfix/smtpd[17372]: disconnect from mimir.example.de[2a01:xxx:yy:1000:b01c:143e:0:1]

And help or hint is appreciated!

Barungar
 
Hi Barungar,

Every Username that contains certain characters is rejected! So far I have identified "-" and "\" for being rejected.
Actually, the notice "Incorrect recipient mailname : a-bulas" indicates ( and you state this as well ), that your script passes over a wrong format, where only the username can be parsed and the correct usage is to pass over the COMPLETE "[email protected]". Pls. change the format to "[email protected]" and leave out the single username with the space in front and see if this already solves your issue. ;)
 
Well, no.. it doesn't... the format looks absolutely fine to me. And it's not a script it's a forum. I've even enabled "debug mode" which allows to write the DATA part of the mail into a file parallel to trying to send it.

Code:
Date: Thu, 15 Jun 2017 14:13:55 +0000
To: "a-bulas" <[email protected]>
Subject: Test-Mail xxxXXXxxx
X-Priority: 3
X-Mailer: WoltLab Community Framework Mail Package
From: Phoenix-Union Bot <[email protected]>
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
MIME-Version: 1.0

Attachments: Array
(
)

Test-Mail xxxXXXxxx
Test-Mail xxxXXXxxx
Test-Mail xxxXXXxxx
Test-Mail xxxXXXxxx
Test-Mail xxxXXXxxx

--
Diese Mail wurde durch eine Funktion der Foren-Software unter https://www.example.de/ versandt.

To me, that look pretty well formated... and the RPCT TO and MAIL FROM (which is not part of the debug log file) seem also to be okay, that I read in the mail server log, which states (see above) from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<www.example.de>

So the mail send from the forum seems to be fine ...
 
Hi Barungar,

o.k... fine... then you are sure able to explain, why the mail log only states:
Code:
Incorrect recipient mailname : a-bulas
?
 
No, I'm not... that's why I opened this thread... I don't know why psa-pc-remote doesn't like the mail (format).
I've even connected with telnet to port 25 and simulated an unencrypted smtp transfer with entering EHLO, MAIL FROM, RCPT TO and DATA manually and then pasting the content of the debug log. Well that mail is delivered...

Code:
Jun 16 07:38:59 mimir postfix/smtpd[5523]: connect from localhost[::1]
Jun 16 07:39:51 mimir postfix/smtpd[5523]: 0CB35C033F: client=localhost[::1]
Jun 16 07:40:53 mimir postfix/cleanup[5530]: 0CB35C033F: message-id=<[email protected]>
Jun 16 07:40:53 mimir check-quota[5928]: Starting the check-quota filter...
Jun 16 07:40:53 mimir /usr/lib64/plesk-9.0/psa-pc-remote[6550]: handlers_stderr: SKIP
Jun 16 07:40:53 mimir /usr/lib64/plesk-9.0/psa-pc-remote[6550]: SKIP during call 'check-quota' handler
Jun 16 07:40:53 mimir spf[5930]: Starting the spf filter...
Jun 16 07:40:53 mimir spf[5930]: SPF result: pass
Jun 16 07:40:53 mimir spf[5930]: SPF status: PASS
Jun 16 07:40:53 mimir /usr/lib64/plesk-9.0/psa-pc-remote[6550]: handlers_stderr: PASS
Jun 16 07:40:53 mimir /usr/lib64/plesk-9.0/psa-pc-remote[6550]: PASS during call 'spf' handler
Jun 16 07:40:53 mimir postfix/qmgr[21663]: 0CB35C033F: from=<[email protected]>, size=847, nrcpt=1 (queue active)
Jun 16 07:40:54 mimir postfix/smtp[5931]: 0CB35C033F: to=<[email protected]>, orig_to=<[email protected]>, relay=mx01.emig.gmx.net[212.227.17.5]:25, delay=87, delays=87/0.01/0.15/0.16, dsn=2.0.0, status=sent (250 Requested mail action okay, completed: id=0ME3Wd-1dbNij040l-00HLkQ)
Jun 16 07:40:54 mimir postfix/qmgr[21663]: 0CB35C033F: removed
Jun 16 07:40:56 mimir postfix/smtpd[5523]: disconnect from localhost[::1]

I've rechecked it... that was me some minutes ago; do that same manual smtp... and the mail was delivered and accepted.

Just entered:
Code:
EHLO mimir.example.de
MAIL FROM:[email protected]
RCPT TO:[email protected]
DATA
Date: Thu, 15 Jun 2017 14:13:55 +0000
To: "a-bulas" <[email protected]>
Subject: Test-Mail xxxXXXxxx
X-Priority: 3
X-Mailer: WoltLab Community Framework Mail Package
From: Phoenix-Union Bot <[email protected]>
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
MIME-Version: 1.0

Attachments: Array
(
)

Test-Mail xxxXXXxxx
Test-Mail xxxXXXxxx
Test-Mail xxxXXXxxx
Test-Mail xxxXXXxxx
Test-Mail xxxXXXxxx

--
Diese Mail wurde durch eine Funktion der Foren-Software unter https://www.example.de/ versandt.

.
QUIT
 
Last edited:
Hi Barungar,

actually, you left out the script ( or call it software, because it's part of the Woltlab forum software ) with your test, so this isn't a real proof, that pc-remote should be your root cause. ;)

But you could use a mail client ( account configured for "[email protected]" ) and you could try to send the very same message ( incl. the possible HTML configurations as used for Woltlab ) and send it to a-bulas <[email protected]> . Afterwards you might check your logs and see what the logs say.

If you use quotes in the script, pls. quote not only the username, but consider to tryout as well :
Code:
To: a-bulas <[email protected]>
or
To: "a-bulas <[email protected]>"
 
Well, I thought sending the DATA part via Telnet is quite suiteable to simulate the mail tranfser.

Regarding the source... First I'm no php developer, second I don't know if it is up to me to publish WoltLabs sources and third the forum software has >4.000 php-files ( find . |grep ".php$" |wc -l) ... and I don't know which one is of interesst...
 
Hi Barungar,

First I'm no php developer
I should inform you, that the Plesk Community doesn't support errors/issues/problems of third-party software/scripts here at the Plesk Community forum, especially not in "Plesk related forums", where you posted your thread ( => Home > Forum > Plesk Discussion > Plesk Onyx for Linux ).
You still have the choice to discuss issues/errors/problems or an general discussion at => Home > Forum > General Discussion > Open Topics for "non-plesk-related" topics.


As a final information to "Woltlab", I can assure you, that SMTP AND PHP-Mail - transport works as expected on CentOS/Debian/Ubuntu - based systems, where wbb3.x - wbb5.x is being used, so pls. consider to check your settings at your Woltlab Admin Panel and consider to ask for support at their forums, if you experience further issues/errors/problems when sending mail over their software/scripts. :)
 
Back
Top