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

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Issue Script Base Mails Are Not Sending

GSMPRO

New Pleskian
Server operating system version
Almalinux 9.2
Plesk version and microupdate number
Version 18.0.61
HI guys,

Scripts from my server are no longer sending emails like password reset emails. registration emails etc.

I have checked my settings and it seems good.

Who knows what is causing this?

Cheers
 
Did you check to mail logs to see if there's are any relevant mail transactions logged that would give you more information? You can access the mail log in Plesk via Tools & Settings > Log Browser > Mail.
 
postfix/smtpd [548145] - disconnect from host.mydomain.com[123.123.123.123] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6

psa-pc-remote [216907] - 28AA52605DB: py-limit-out: stderr: ERROR:__main__:'ascii' codec can't encode characters in position 279-280: ordinal not in range(128)
 
Last edited by a moderator:
I don't have much information on the above errors either.

Can you share a bit more details on the exact issue your are having? The more details the better.
 
I don't have much information on the above errors either.

Can you share a bit more details on the exact issue your are having? The more details the better.

Thanks for asking.

I just noticed that notification emails are not going out from the server. The only mail going out are emails from email boxes eg [email protected]

I have checked, and the email port is ready and open too. Everything seems ok and my provider said there no blocks.
 
I see. However the mail log entries don't seem related to that. There must be other entries in the mail log that contain more information with clues to why no mail aren't sent. Aren't there more log entries? Something like for example:

A9D572100B: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[123.123.123.123]:25, delay=2.3, delays=0.34/0.03/1.1/0.81, dsn=5.7.26, status=bounced (host gmail-smtp-in.l.google.com[142.251.175.26] said: 550-5.7.26 Unauthenticated email from mydomain.com is not accepted due to 550-5.7.26 domain's DMARC policy. Please contact the administrator of 550-5.7.26 mydomain.com domain if this was a legitimate mail. To learn about 550-5.7.26 the DMARC initiative, go to 550 5.7.26 Control unauthenticated mail from your domain - Google Workspace Admin Help d2e1a72fcca58-7080370e7e9si5747181b3a.152 - gsmtp (in reply to end of DATA command))
 
This looks like a Python translation error using the str() function to encode a string.
What is your server's default language?
 
After reinstall
Step:
1- Install Qmail
2- Apt purge postfix
3- Install postfix (mail work and send but i have this error: mail fatal: open database /var/spool/postfix/plesk/virtual.db: No such file or directory
4- cmd plesk repair mail -y -v (mails are no longer sent...)

I don't have other errors in logs ...

maillog:
Aug 13 17:30:38 mail plesk-sendmail[456701]: S456701: from=<[email protected]> to=<[email protected]>
Aug 13 17:30:38 mail plesk-sendmail[456702]: S456701: add-from: stderr: SKIP
Aug 13 17:30:38 mail plesk-sendmail[456702]: S456701: py-limit-out: stderr: INFO:__main__:Setting 'X-PPP-Vhost' header to 'clan-rmg.com'
Aug 13 17:30:38 mail plesk-sendmail[456702]: S456701: py-limit-out: stderr: ERROR:__main__:'ascii' codec can't encode character '\xe8' in position 147: ordinal not in range(128)
Aug 13 17:30:38 mail plesk-sendmail[456702]: S456701: check-quota: stderr: SKIP
Aug 13 17:30:38 mail plesk-sendmail[456707]: S456701: dk_sign: stderr: PASS
Aug 13 17:30:38 mail postfix/pickup[441111]: 824BBE448A: uid=10000 from=<[email protected]>
Aug 13 17:30:38 mail postfix/cleanup[456712]: 824BBE448A: message-id=<[email protected]>
Aug 13 17:30:38 mail postfix/qmgr[441112]: 824BBE448A: from=<[email protected]>, size=12996, nrcpt=1 (queue active)
Aug 13 17:30:39 mail postfix/smtp[456717]: 824BBE448A: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[142.250.102.26]:25, delay=0.78, delays=0.03/0.01/0.29/0.45, dsn=2.0.0, status=sent (250 2.0.0 OK 1723563039 a640c23a62f3a-a80f411c1e5si108051166b.389 - gsmtp)
Aug 13 17:30:39 mail postfix/qmgr[441112]: 824BBE448A: removed
 
Can you temporarily change the default language to English and try again?
You have to log out and log in to activate the default language.
 
All lines with # cause problems on my system... once I disable these lines everything works correctly again.
It's not the best solution but while we wait for a fix to be found it helps
#virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains
#virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual
#virtual_mailbox_maps = , hash:/var/spool/postfix/plesk/vmailbox
transport_maps = , hash:/var/spool/postfix/plesk/transport
smtpd_use_tls = yes
#smtp_use_tls = no
#disable_vrfy_command = yes
#smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists, permit_sasl_authenticated
#smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated
#smtp_send_xforward_command = yes
#smtpd_authorized_xforward_hosts = 127.0.0.0/8 [::1]/128
#smtpd_sasl_auth_enable = yes
#smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
virtual_mailbox_base = /var/qmail/mailnames
#virtual_uid_maps = static:30
virtual_gid_maps = static:31
smtpd_milters = , inet:127.0.0.1:12768
#sender_dependent_default_transport_maps = hash:/var/spool/postfix/plesk/sdd_transport_maps
virtual_transport = plesk_virtual
plesk_virtual_destination_recipient_limit = 1
message_size_limit = 10240000
recipient_canonical_maps = tcp:127.0.0.1:12346
recipient_canonical_classes = envelope_recipient,header_recipient
 
Commenting out random lines in the postfix configuration isn't recommended. It will break things for sure. Instead uncomment those lines and run plesk repair mail -y to try to restore the mail configuration of the server.
 
After reinstall
Step:
1- Install Qmail
2- Apt purge postfix
3- Install postfix (mail work and send but i have this error: mail fatal: open database /var/spool/postfix/plesk/virtual.db: No such file or directory
4- cmd plesk repair mail -y -v (mails are no longer sent...)

I don't have other errors in logs ...

maillog:

How did you install Postfix? I guess you used the default version of the OS?

Make sure to follow the official guide, like this:
 
Back
Top