• 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

Qmail configuration

M

mirage

Guest
Ok, so I'm officially going bonkers.... Searched hi and lo... but without success.

I keep getting the infamous triple bounce from qmail.

My hostname is alderaan.innernine.com.

The domain innernine.com is hosted on that machine.

But mail is hosted elsewhere. In fact I'm not hosting any mail on this Plesk server at all. All turned off. But I'm sending mail from websites, etc.

In the maillog, I can see that the system is trying to send to three email addresses in succession - over and over and over again:

1. [email protected]
2. [email protected]
3. [email protected]



What I want to simply forward those messages to another account. So I tried to set this up in the alias files and even the user control files for root

cat /var/qmail/alias/.qmail-anonymous
[email protected]

cat /var/qmail/alias/.qmail-drweb-daemon
[email protected]

cat /var/qmail/alias/.qmail-mailer-daemon
[email protected]

cat /var/qmail/alias/.qmail-postmaster
[email protected]

cat /var/qmail/alias/.qmail-root
[email protected]

cat /var/qmail/alias/.qmail-root
[email protected]


And for the root user:

cat ~/.forward
[email protected]

cat ~/.qmail
[email protected]

As mail is disabled for all hosted domain my rcpthosts file is empty.

Where else can I look?

Here is that log section that repeats over and over:
Feb 1 14:02:01 alderaan qmail-queue-handlers[24273]: Handlers Filter before-queue for qmail started ...
Feb 1 14:02:01 alderaan qmail-queue-handlers[24273]: [email protected]
Feb 1 14:02:01 alderaan qmail-queue-handlers[24273]: [email protected]
Feb 1 14:02:01 alderaan qmail-queue-handlers[24273]: hook_dir = '/usr/local/psa/handlers/before-queue'
Feb 1 14:02:01 alderaan qmail-queue-handlers[24273]: recipient[3] = '[email protected]'
Feb 1 14:02:01 alderaan qmail-queue-handlers[24273]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/[email protected]'
Feb 1 14:02:01 alderaan qmail-queue-handlers[24273]: starter: submitter[24274] exited normally
Feb 1 14:02:01 alderaan qmail: 1233518521.180533 new msg 163728620
Feb 1 14:02:01 alderaan qmail: 1233518521.180612 info msg 163728620: bytes 727 from <[email protected]> qp 24274 uid 10034
Feb 1 14:02:01 alderaan qmail: 1233518521.184077 starting delivery 22: msg 163728620 to local [email protected]
Feb 1 14:02:01 alderaan qmail: 1233518521.184186 status: local 1/10 remote 0/20
Feb 1 14:02:01 alderaan qmail-local-handlers[24276]: Handlers Filter before-local for qmail started ...
Feb 1 14:02:01 alderaan qmail-local-handlers[24276]: cannot create temporary file - (13) Permission denied
Feb 1 14:02:01 alderaan qmail-local-handlers[24276]: cannot read message from stdin
Feb 1 14:02:01 alderaan qmail: 1233518521.188944 delivery 22: failure:
Feb 1 14:02:01 alderaan qmail: 1233518521.189186 status: local 0/10 remote 0/20
Feb 1 14:02:01 alderaan qmail-queue-handlers[24278]: Handlers Filter before-queue for qmail started ...
Feb 1 14:02:01 alderaan qmail-queue-handlers[24278]: from=
Feb 1 14:02:01 alderaan qmail-queue-handlers[24278]: [email protected]
Feb 1 14:02:01 alderaan qmail-queue-handlers[24278]: hook_dir = '/usr/local/psa/handlers/before-queue'
Feb 1 14:02:01 alderaan qmail-queue-handlers[24278]: recipient[3] = '[email protected]'
Feb 1 14:02:01 alderaan qmail-queue-handlers[24278]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/[email protected]'
Feb 1 14:02:01 alderaan qmail-queue-handlers[24278]: starter: submitter[24279] exited normally
Feb 1 14:02:01 alderaan qmail: 1233518521.198984 bounce msg 163728620 qp 24278
Feb 1 14:02:01 alderaan qmail: 1233518521.199051 end msg 163728620
Feb 1 14:02:01 alderaan qmail: 1233518521.200010 new msg 163728714
Feb 1 14:02:01 alderaan qmail: 1233518521.200074 info msg 163728714: bytes 1269 from <> qp 24279 uid 2522
Feb 1 14:02:01 alderaan qmail: 1233518521.204616 starting delivery 23: msg 163728714 to local [email protected]
Feb 1 14:02:01 alderaan qmail: 1233518521.204735 status: local 1/10 remote 0/20
Feb 1 14:02:01 alderaan qmail-local-handlers[24280]: Handlers Filter before-local for qmail started ...
Feb 1 14:02:01 alderaan qmail-local-handlers[24280]: cannot create temporary file - (13) Permission denied
Feb 1 14:02:01 alderaan qmail-local-handlers[24280]: cannot read message from stdin
Feb 1 14:02:01 alderaan qmail: 1233518521.209177 delivery 23: failure:
Feb 1 14:02:01 alderaan qmail: 1233518521.209262 status: local 0/10 remote 0/20
Feb 1 14:02:01 alderaan qmail-queue-handlers[24282]: Handlers Filter before-queue for qmail started ...
Feb 1 14:02:01 alderaan qmail-queue-handlers[24282]: from=#@[]
Feb 1 14:02:01 alderaan qmail-queue-handlers[24282]: [email protected]
Feb 1 14:02:01 alderaan qmail-queue-handlers[24282]: hook_dir = '/usr/local/psa/handlers/before-queue'
Feb 1 14:02:01 alderaan qmail-queue-handlers[24282]: recipient[3] = '[email protected]'
Feb 1 14:02:01 alderaan qmail-queue-handlers[24282]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/[email protected]'
Feb 1 14:02:01 alderaan qmail-queue-handlers[24282]: starter: submitter[24283] exited normally
Feb 1 14:02:01 alderaan qmail: 1233518521.355942 bounce msg 163728714 qp 24282
Feb 1 14:02:01 alderaan qmail: 1233518521.356065 end msg 163728714
Feb 1 14:02:01 alderaan qmail: 1233518521.356594 new msg 163728706
Feb 1 14:02:01 alderaan qmail: 1233518521.356763 info msg 163728706: bytes 1715 from <#@[]> qp 24283 uid 2522
Feb 1 14:02:01 alderaan qmail: 1233518521.360221 starting delivery 24: msg 163728706 to local [email protected]
Feb 1 14:02:01 alderaan qmail: 1233518521.360750 status: local 1/10 remote 0/20
Feb 1 14:02:01 alderaan qmail-local-handlers[24294]: Handlers Filter before-local for qmail started ...
Feb 1 14:02:01 alderaan qmail-local-handlers[24294]: cannot create temporary file - (13) Permission denied
Feb 1 14:02:01 alderaan qmail-local-handlers[24294]: cannot read message from stdin
Feb 1 14:02:01 alderaan qmail: 1233518521.365661 delivery 24: failure:
Feb 1 14:02:01 alderaan qmail: 1233518521.365909 status: local 0/10 remote 0/20
Feb 1 14:02:01 alderaan qmail: 1233518521.366028 triple bounce: discarding bounce/163728706
Feb 1 14:02:01 alderaan qmail: 1233518521.366094 end msg 163728706

I'm sure that you guys have seen this before. I don't know why it's failing to create a temporary file - much less do I have a clue 'where' this file fails to create, ergo I can't verify permission issues.



Oh and also - just trying to tackle all this: When trying to change the hostname in the Plesk Control Panel - it always reports an error - regardless of what I change it to (i.e. it doesn't matter whether I have an A record for the hostname or not):

Error: Incorrect DNS record values were specified.

Interestingly enough - It does change the hostname in the control panel regardless of the error. But checking 'hostname' in the shell, it's still the same. So I'm pretty sure this is just a bug. I host a lot of DNS on this machine and it's all working hunky dory.

Finally:
Why is it that when I add a domain alias to a domain with Mail Service enabled it's added to the qmail rcpthost file, but when I create a subdomain, then it's not? Sounds again like a bug to me.

Any takers?

My system is running fine, but it just bugs the living daylights out of me that a) Something is not working right and logs are bleeding with this error and b) I seem to have no control over fixing it? What good is Plesk then?

Thanks for any help,
Juergen
 
Thank you atrias.

I decided to switch to postfix and that made my problems go away. But I do appreciate your response.
 
atrias, your solution has saved me as well, after Parallels refused to help on this, saying it was not part of the control panel and they were not responsible for such command-line changes. (While they actually described the method themselves in this forum at http://kb.odin.com/en/3439).

I've summarized my experiences with alias domain mail redirects here -- hope it helps others.
 
this solved the same problem for me
chmod u+s /var/qmail/bin/qmail-local

For me too, I could not send mail to root (which I redirect in the /var/qmail/alias/.qmail-root)

I'd like to think I know about all the basic qmail stuff like the me, locals, rcpthosts and morercpthosts. Still I got the tripple bounce message.

As I upgraded a default (not customised) Plesk server from 8.6.0 to 9.0 and then 9.0.1 through the control Panel. I regard this to be a bug which sould be fixed by Plesk.
 
Back
Top