Hi,

I'm a newbie qmail admin getting more and more enthousiastic about this MTA,
even though I've just spent some time troubleshooting my first qmail problem
after someone accidentally deleted a qmail user account and changed
permissions on some directories. My mail system was suffering from a "451 qq
trouble creating files in queue (#4.3.0)" message when receiving/trying to
queue mail. I found a lot of people asking what this was all about all over
the net, but no real solution to the problem. Well, I just want to add my
own 0.02 $ by saying that it's all permissions and owner-related. I found
the "make check" (which calls instcheck) from the build directory to be the
most effective tool to find out where file ownerships and permissions have
gone berserk. Note that usernames don't really matter for qmail, it's the
userids that have to match ! Recreating a deleted account with a different
userid doesn't solve things, you have to change the uid in /etc/passwd
afterwards.

I have two quick questions though:

How can I clean out /var/qmail/queue/pid after an ungraceful shutduwn ?
(you've guessed it, at some point I thought it would be useful to just
kill -9 all qmail processes) I have no idea which files shouldn't be in that
folder.

[root@yuclnx1 queue-fix-1.4]# /var/qmail/bin/instcheck
[root@yuclnx1 queue-fix-1.4]# /var/qmail/bin/qmail-lint
[root@yuclnx1 queue-fix-1.4]# /var/qmail/bin/qmail-qsanity
[root@yuclnx1 queue-fix-1.4]# /var/qmail/bin/queue-fix -N /var/qmail/queue/
Running in test mode, no changes will be made.
Found files in /var/qmail/queue/pid that shouldn't be there.
I will not remove them. You should consider checking it out.

queue-fix finished...

How do I find out what files to delete ? There are 151 files in the folder.

Also, due to a domain name change, I need to implement the following: all
people sending mail to [EMAIL PROTECTED] should receive a reply
saying that they should now use [EMAIL PROTECTED] I know it shouldn't be too
difficult to redirect mail from @subdomain.domain.com to @domain.com, but
our management really wants to have automated replies to the senders...

Regards,
Filip

Reply via email to