• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

QMail-Alias is not working

Thomas Wilhelmi

Regular Pleskian
Hallo,

I use Plesk 9.2.2 with QMail as Mailing-system. The following alias-definitions where predefined in my config:

xxxxxxxx:/var/qmail # la alias
insgesamt 40
drwxr-sr-x 2 alias qmail 4096 4. Aug 10:46 .
drwxr-xr-x 11 root qmail 4096 14. Jul 14:19 ..
-rw-r--r-- 1 root qmail 29 31. Jul 17:12 .qmail-anonymous
-rw-r--r-- 1 root qmail 29 31. Jul 17:12 .qmail-drweb-daemon
-rw-r--r-- 1 root qmail 29 31. Jul 17:12 .qmail-mailer-daemon
-rw-r--r-- 1 root qmail 29 31. Jul 17:12 .qmail-mailman
-rw-r--r-- 1 root qmail 29 31. Jul 17:12 .qmail-postmaster
-rw-r--r-- 1 root qmail 29 31. Jul 17:12 .qmail-root
xxxxxxxx:/var/qmail #

All contains the same line:


This works for the most important addresses "root" and "postmaster". But not for "mailman". I than created 2 new alias-files "kluser" and "drweb" for cronjobs running under this users. I created them with the command "cp .qmail-root .qmail-drweb" and "cp .qmail-root .qmail-kluser". This works for the kluser-alias. But not for "drweb". The Logfile for both ("drweb" and "mailman") contains the follwing:

Aug 4 12:58:29 xxxxxxxx qmail: 1249383509.351774 starting delivery 5176: msg 1344057 to local [email protected]
Aug 4 12:58:29 xxxxxxxx qmail: 1249383509.352120 status: local 1/10 remote 0/20
Aug 4 12:58:29 xxxxxxxx qmail-local-handlers[27785]: Handlers Filter before-local for qmail started ...
Aug 4 12:58:29 xxxxxxxx qmail-local-handlers[27785]: [email protected]
Aug 4 12:58:29 xxxxxxxx qmail-local-handlers[27785]: [email protected]
Aug 4 12:58:29 xxxxxxxx qmail-local-handlers[27785]: mailbox: /var/drweb
Aug 4 12:58:29 xxxxxxxx qmail-local-handlers[27785]: hook_dir = '/usr/local/psa/handlers/before-local'
Aug 4 12:58:29 xxxxxxxx qmail-local-handlers[27785]: recipient[3] = '[email protected]'
Aug 4 12:58:29 xxxxxxxx qmail-local-handlers[27785]: handlers dir = '/usr/local/psa/handlers/before-local/recipient/[email protected]'
Aug 4 12:58:29 xxxxxxxx qmail: 1249383509.367705 delivery 5176: deferral: ./Maildir:_No_such_file_or_directory/
Aug 4 12:58:29 xxxxxxxx qmail: 1249383509.367781 status: local 0/10 remote 0/20

I notice that QMail tries to access the Mailbox of this user. But shouldn't it use the alias-entry before it tries to go to the Homedir? And why does it work for "kluser" who has no MailDir as well?

Thanks and Regards,
Thomas
 
Having the same issue

I'm having the same issue.

Oct 2 12:06:45 server1 qmail: 1254499605.198076 starting delivery 1: msg 100598722 to local [email protected]
Oct 2 12:06:45 server1 qmail: 1254499605.198478 status: local 1/10 remote 0/20
Oct 2 12:06:45 server1 qmail-local-handlers[22009]: Handlers Filter before-local for qmail started ...
Oct 2 12:06:45 server1 qmail-local-handlers[22009]: [email protected]
Oct 2 12:06:45 server1 qmail-local-handlers[22009]: [email protected]
Oct 2 12:06:45 server1 qmail-local-handlers[22009]: mailbox: /var/drweb
Oct 2 12:06:45 server1 qmail-local-handlers[22009]: hook_dir = '/usr/local/psa/handlers/before-local'
Oct 2 12:06:45 server1 qmail-local-handlers[22009]: recipient[3] = '[email protected]'
Oct 2 12:06:45 server1 qmail-local-handlers[22009]: handlers dir = '/usr/local/psa/handlers/before-local/reci
pient/[email protected]'
Oct 2 12:06:45 server1 qmail: 1254499605.210052 delivery 1: deferral: ./Maildir:_No_such_file_or_directory/
Oct 2 12:06:45 server1 qmail: 1254499605.210144 status: local 0/10 remote 0/20


1. I've tried to create a specific alias for drweb in /var/qmail/alias/.qmail-drweb to by pass the issue - no luck
2. I've tried to manually create /var/drweb/Maildir - no luck
3. I've tried to manually create a /var/spool/mail/drweb dir and file - no luck (not surprised here)

Any other suggestions out there? We can't be the only two with this issue.

Thanks in advance.
 
Not ideal, but..

I just ended up creating a /var/drweb/.qmail file with &root in it. Still testing it, but appears to have at least bypassed the issue.
 
solved!

I had the same problem, finally found a solution that works for me, maybe it helps you out.

In my qmail-log i also found
XXXXXXX qmail-local-handlers[10933]: cannot create temporary file - (13) Permission denied

I noticed the file-permissions of /var/qmail/bin/qmail-local were different to qmail-remote
-r-xr-xr-x 1 root qmail 71744 16. Okt 14:58 qmail-local
-r-x--s--x 1 mhandlers-user popuser 71488 16. Okt 14:58 qmail-remote

So I set the owner and group ("chown mhandlers-user:popuser /var/qmail/bin/qmail-local") and the permissions ("chmod g+s /var/qmail/bin/qmail-local") and it worked. I can send mail to drweb ("mail drweb") and finally the cronjob by drweb doesn't reach me from mailer-daemon with failure notice :)

Hope that helps, good luck.
 
The problem will be solved, when you re-install your locales settings, I think. ;)
 
I had the same problem, finally found a solution that works for me, maybe it helps you out.

In my qmail-log i also found


I noticed the file-permissions of /var/qmail/bin/qmail-local were different to qmail-remote


So I set the owner and group ("chown mhandlers-user:popuser /var/qmail/bin/qmail-local") and the permissions ("chmod g+s /var/qmail/bin/qmail-local") and it worked. I can send mail to drweb ("mail drweb") and finally the cronjob by drweb doesn't reach me from mailer-daemon with failure notice :)

Hope that helps, good luck.

Correct solution. Be aware that your problems with the mail server might persist, but that they are not related to ownership.

Only if you have "permission denied" (or something of the sort), do change the ownership and permissions of qmail-local to that of qmail-remote for example.

If other problems persist, you can be sure that you still did the good thing with qmail-local.

Those other problems follow from a bad qmail installation (or more likely: change from postfix to qmail with the autoinstaller).

Therefore, when problems persist, a simple solution seems to be present: run autoinstaller twice!
(this helps for sure and makes qmail installation proper)
 
I just ended up creating a /var/drweb/.qmail file with &root in it. Still testing it, but appears to have at least bypassed the issue.

Correct solution. A similar solution helps for missing mailman mail adresses.

However, it is practical for one drweb and one or two missing mailman addresses. And then you still are not sure whether all problems are solved, since the missing .qmail files are being caused by another result: a faulty installation procedure.

My tip: run the autoinstaller twice (change to postfix when having qmail and, after installing postfix, change back to qmail)......this is necessary since qmail is not being installed properly with the autoinstaller (a bug ).

Even though this seems solution seems strange, it is fast ....and works........and prevents the manual creation of lots of .qmail* files when also missing mailman addresses.
 
@ManuelF: thank you for the correct solution! I'm not receiving the delivery failure notification anymore.
 
Hi guys.
I am having problems with setting up Mailman's join list via email feature.

My configuration: CentOS 5.8, Plesk 11.0.9.

I am trying to make my mailing list accept another way of joining a list, that is to join the Mailman mailing list by sending email to LISTNAME-join@DOMAIN. But it doesn't work, users get replies "550 sorry, no mailbox here by that name." The list LISTNAME@DOMAIN works fine otherwise.

Then I researched and found that I need to set aliases for my Qmail. So I added /var/qmail/alias/.qmail-listname-join file with the following contents: |preline /usr/lib/mailman/mail/mailman join listname, but it still does not work.

How do I set up my Qmail to accept Mailman LISTNAME-join@DOMAIN?
 
@DanijelD,

In my post of 23.10.2009 (see above), I have hinted an answer to your question.

Just convert qmail to postfix and, afterwards, revert from postfix to qmail.

In most of the cases, this will resolve issues with qmail and/or mailman on qmail.

Kind regards...
 
I resolved the issue.
It was the location of alias files which I found by accident. In Plesk 11, all the .qmail alias files seem to be located per domain in /var/qmail/mailnames/mydomain.com. As soon as I created a .qmail-listname-join file (with only this line in the file: |/var/qmail/bin/preline /usr/lib/plesk-9.0/mm_wrapper /usr/lib/mailman/mail/mailman join listname), all started working normaly. I also restarted QMail, just in case. I wander why was this not documented anywhere.
 
Back
Top