PDA

View Full Version : Qmail queue issue


Catalyst
01-24-2007, 10:09 AM
Anyone else seeing this with the latest Qmail from December? Or know how to fix it?

----- Forwarded message from MAILER-DAEMON@mysub.mydomain.tld -----
Date: 24 Jan 2007 02:06:51 -0000
From: MAILER-DAEMON@mysub.mydomain.tld
Reply-To: MAILER-DAEMON@mysub.mydomain.tld
Subject: failure notice
To: localuser@mycustomerdomain.tld
Hi. This is the qmail-send program at mysub.mydomain.tld.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<@mysub.mydomain.tld>:

Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)

--- Below this line is a copy of the message.Of course, the recipient is NOT listed as a best-preference MX or A record for the receiving host, as it's a remote domain ... This makes no sense at all.

Fr3d
01-24-2007, 12:25 PM
That sounds like some kind of DNS problem to me... Or a bad script which is sending stuff wrongly.

Catalyst
01-25-2007, 02:05 AM
No DNS issue ... No scripts.

Fr3d
01-25-2007, 07:21 AM
Are you able to send to other remote domains, such as Gmail or Yahoo?

Catalyst
01-25-2007, 08:42 AM
Able to send everywhere, anywhere, but then there's this randon, intermittent problem with remote mail deciding to drop itself in the local queue...

Fr3d
01-25-2007, 10:27 AM
Tried restarting all the mail and dns services?

pascal
02-04-2007, 10:48 AM
Look in /home/vpopmail/domains/


# ls -l /home/vpopmail/domains/
total 8
drwx--x--- 2 vpopmail vchkpw 4096 jan 30 09:16 0
drwx--x--- 2 vpopmail vchkpw 4096 fév 4 17:28 1
lrwxrwxrwx 1 root root 44 déc 28 00:20 domain1.com -> /home/account1/var/domain1.com/mail
etc



Check this :
1- All domains are set with vpopmail.vchkpw
2- Your domain is in the list
3- If you have a directory called 0 or/and 1, check that this directory have these rights :
drwx--x--- and not only these one drwx------

If you have a directory called 0 or 1 you must change the authority


chmod u+x /home/vpopmail/domains/0

for every existing 0 to n directory
chmod u+x /home/vpopmail/domains/1
chmod u+x /home/vpopmail/domains/2

etc...


It should fixe your problem

Pascal

Catalyst
02-04-2007, 12:31 PM
It should fixe your problemNot sure where to begin with that one ... but ... that's absolutely nowhere close. ;-)

This started happening on a couple more servers after this one (none of which I installed). Turns out that the FQDN's weren't added to /var/qmail/control/rcpthosts & /var/qmail/control/locals --- only the hosts' subdomain aliases... Adding the FQDN below that has fixed the problem entirely.

IWorx-Socheat
02-04-2007, 12:45 PM
Are the domains listed in /var/qmail/control/morercpthosts ? /var/qmail/control/rcpthosts typically only has roughly, at most, 50 entries, and the overflow should go into morercpthosts.

Catalyst
02-04-2007, 01:54 PM
If I understand it correctly, aren't rcpthosts & morercpthosts only applicable for locally hosted domains?

Again ... the problem was that remote mail would intermittently come up with the error message, which shouldn't've happened. Remote hosts wouldn't be listed in rcpthosts to begin with (unless they part of a larger mail cluster).

The problem was that the local server's FQDN wasn't listed in rcpthosts or locals --- so occasionally, if mail was deferred, the mailer didn't know what "server2" was, and the mail would bounce back to itself.

IWorx-Socheat
02-04-2007, 02:26 PM
Ah, sorry, I just saw your mention of rcpthosts, and that was the first thing that came to mind. Missed the part about "remote mail".

pascal
02-04-2007, 03:23 PM
arff sorry too. I also missed the part about "remote mail"....