• 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

SMTP error in mail logs

... my new problem is :

Hi folks,

I encountered the same problem and replaced the qmail-queue and it seems to work, but the workaround lead to the following:

The missing "from string" is now replaced by the address: postmaster@hostname
(hostname is name of the machine), which can't be correct finally.

Regards,
Christoph

Please read carefully the thread before ...
 
ok but this was not clear after your post. In my case this is actually not a problem as the displayed "from string" in the mail is still the original one, which is embedded in the mail. The postmaster@hostname "from string" seems to be only used when the sending mail server connects to the local smtp server.
 
it was not very clear indeed ...
it seems strange because i have a lot of this messages im my log

Feb 4 10:56:06 deditechmail qmail-queue-handlers[23198]: from=postmaster@hostname
Feb 4 10:56:06 deditechmail qmail: 1265277366.590468 info msg 20733954: bytes 2899 from <postmaster@hostname> qp 23200 uid 2020
Feb 4 10:56:06 deditechmail qmail-local-handlers[23201]: from=postmaster@hostname
Feb 4 10:57:25 deditechmail qmail-queue-handlers[24612]: from=postmaster@hostname
Feb 4 10:57:25 deditechmail qmail: 1265277445.886340 info msg 26255530: bytes 2032 from <postmaster@hostname> qp 24616 uid 2020
Feb 4 10:57:25 deditechmail qmail-local-handlers[24626]: from=postmaster@hostname
Feb 4 10:57:52 deditechmail qmail-queue-handlers[25106]: from=postmaster@hostname
Feb 4 10:57:52 deditechmail qmail: 1265277472.469560 info msg 26255530: bytes 1841 from <postmaster@hostname> qp 25107 uid 2522
Feb 4 10:57:52 deditechmail qmail-local-handlers[25108]: from=postmaster@hostname
Feb 4 10:59:25 deditechmail qmail-queue-handlers[27592]: from=postmaster@hostname
Feb 4 10:59:25 deditechmail qmail: 1265277565.694790 info msg 26255507: bytes 2711 from <postmaster@hostname> qp 27596 uid 2020
Feb 4 10:59:25 deditechmail qmail-remote-handlers[27598]: from=postmaster@hostname
Feb 4 10:59:25 deditechmail qmail-queue-handlers[27600]: from=postmaster@hostname
Feb 4 10:59:25 deditechmail qmail: 1265277565.994118 info msg 26255534: bytes 2691 from <postmaster@hostname> qp 27617 uid 2020
Feb 4 10:59:26 deditechmail qmail-remote-handlers[27618]: from=postmaster@hostname
Feb 4 10:59:33 deditechmail qmail-queue-handlers[27746]: from=postmaster@hostname
Feb 4 10:59:33 deditechmail qmail: 1265277573.820440 info msg 20733954: bytes 2750 from <postmaster@hostname> qp 27747 uid 2020
Feb 4 10:59:33 deditechmail qmail-local-handlers[27748]: from=postmaster@hostname
Feb 4 11:04:02 deditechmail qmail-queue-handlers[830]: from=postmaster@hostname
Feb 4 11:04:02 deditechmail qmail: 1265277842.151220 info msg 26255540: bytes 1601 from <postmaster@hostname> qp 831 uid 2522
Feb 4 11:04:02 deditechmail qmail-local-handlers[833]: from=postmaster@hostname
Feb 4 11:04:15 deditechmail qmail-queue-handlers[1071]: from=postmaster@hostname
Feb 4 11:04:15 deditechmail qmail: 1265277855.361194 info msg 20733954: bytes 1932 from <postmaster@hostname> qp 1072 uid 2020
Feb 4 11:04:15 deditechmail qmail-local-handlers[1075]: from=postmaster@hostname
Feb 4 11:05:19 deditechmail qmail-queue-handlers[2202]: from=postmaster@hostname
Feb 4 11:05:19 deditechmail qmail: 1265277919.240669 info msg 20733953: bytes 1955 from <postmaster@hostname> qp 2207 uid 2020
Feb 4 11:05:19 deditechmail qmail-local-handlers[2208]: from=postmaster@hostname
Feb 4 11:05:29 deditechmail qmail-queue-handlers[2421]: from=postmaster@hostname
Feb 4 11:05:29 deditechmail qmail: 1265277929.141481 info msg 26255507: bytes 123870 from <postmaster@hostname> qp 2422 uid 2522
Feb 4 11:05:29 deditechmail qmail-local-handlers[2424]: from=postmaster@hostname
Feb 4 11:05:49 deditechmail qmail-queue-handlers[2742]: from=postmaster@hostname
Feb 4 11:05:49 deditechmail qmail: 1265277949.565833 info msg 20733954: bytes 2899 from <postmaster@hostname> qp 2743 uid 2020
Feb 4 11:05:49 deditechmail qmail-remote-handlers[2747]: from=postmaster@hostname
Feb 4 11:08:39 deditechmail qmail-queue-handlers[6795]: from=postmaster@hostname
Feb 4 11:08:39 deditechmail qmail: 1265278119.356302 info msg 26255364: bytes 2765 from <postmaster@hostname> qp 6797 uid 2020
Feb 4 11:08:39 deditechmail qmail-local-handlers[6798]: from=postmaster@hostname
Feb 4 11:10:01 deditechmail qmail-queue-handlers[8681]: from=postmaster@hostname
Feb 4 11:10:01 deditechmail qmail: 1265278201.892484 info msg 20733953: bytes 19784 from <postmaster@hostname> qp 8682 uid 2522
Feb 4 11:10:01 deditechmail qmail-local-handlers[8683]: from=postmaster@hostname
Feb 4 11:15:25 deditechmail qmail-queue-handlers[13977]: from=postmaster@hostname
Feb 4 11:15:25 deditechmail qmail: 1265278525.396854 info msg 20733953: bytes 4360 from <postmaster@hostname> qp 13978 uid 2020
Feb 4 11:15:25 deditechmail qmail-local-handlers[13979]: from=postmaster@hostname
Feb 4 11:16:52 deditechmail qmail-queue-handlers[15218]: from=postmaster@hostname
Feb 4 11:16:52 deditechmail qmail: 1265278612.118692 info msg 20733953: bytes 942 from <postmaster@hostname> qp 15219 uid 2020
Feb 4 11:16:52 deditechmail qmail-remote-handlers[15220]: from=postmaster@hostname
 
I don't have a lot of these messages, I only get those messages the very few times,when the smtp string is missing.

Did you receive all those mails listed in the log?
 
I don't have a lot of these messages, I only get those messages the very few times,when the smtp string is missing.

Did you receive all those mails listed in the log?

No ... very strange ...
IgorG, are you here ? :)

Thx
 
Did you tried mchk for mailsettings rebuilding after patch applying?
 
IgorG and technema,

Some clarification is needed at this moment.

In my opinion, this thread contains many related but separate issues or problems. A summary:

1) issues underlying the error messages
solution: patches;
Note: patches included in updates (to my best knowledge)

2) potential permission issues
solution: install updates
note: issues are likely to be due to manual installation of patches. They should not be present in normal installations or updates.

3) regular hostname issues
solution: changing the FQDN in plesk control panel (under settings)
note: you should check the files "locals" and "me" in the /var/qmail/control directory.

4) root@hostname etc. mails cannot be delivered.
solution I: create a domain in plesk control panel and add the various missing (non-deliverable) mail addresses and change the name in /var/qmail/control/me to the domain created in plesk. No need to change the locals file.
solution II: analyze the .qmail* files in the directory /var/qmail/alias and check if the non-deliverable mail addresses have a alias in the form of .qmail-*. There should be sufficient entries by default. If not, just cp one of the existing files and rename it.
solution III: reinstall qmail (no danger for your mailboxes).

5) queue and bounce issues
solution: depends per case
note: mostly these issues are caused by other problems.

Well, having summarized (hope this helps people to tackle problems), I can proceed to a number of posts.
 
Technema,

is that the EXACT output of your maillog??? If yes, I suppose you have been accidentally changing the hostname.

Let me know if that is the case.....then i will help to change that hostname.
 
Technema,

is that the EXACT output of your maillog? If yes, I suppose you have been accidentally changing the hostname.

Let me know if that is the case.....then i will help to change that hostname.

Thx trialotto

It's not the exact output of my mailog. I have just change it to post here.
postmaster@hostname = postmaster@myhostname(in files "locals" and "me" in my /var/qmail/control directory and in FQDN in plesk control panel)
 
I suppose that you have deleted some lines, could you provide the missing lines?

I suppose that you have some lines indicating that the qmail program could not deliver mails to specific addresses. The format of those addresses is important.

Let me know....
 
Back
Top