qmail guru's

2001-05-30 Thread chris herrmann

Hi all,

qmail is now up, fixed, happy. Thanks to Joel Michael, from sage australia 
for his help.

So how did I fix it? well... to be quite honest I gave up trying to fix it, 
and just reinstalled everything from scratch, because I was getting close to 
the point of committing computer murder.

But, a couple of notes. I'm pretty sure it was caused by a couple of things 
- permissions of files/directories, and the contents of the qmail-smtpd/send 
scripts, which tell it how to deliver stuff.

The send script runs
/var/qmail/rc

which in turn,(now) runs:

exec env - PATH=/var/qmail/bin:$PATH \
qmail-start `cat /var/qmail/control/defaultdelivery`

Whereas before, it was running ???

defaultdelivery contains ./Maildir/

so that mail is sent to the /Maildir/ instead of a mailbox file.

The other change of note was making sure that the other startup scripts were 
pointing at the correct directory for tcp.pop3.cdb etc etc. An example looks 
like:

VPOPMAILUID=`id -u vpopmail`
VCHKPWGID=`id -g vpopmail`
env - PATH=/var/qmail/bin:/usr/local/bin \
**--   /usr/local/bin/tcpserver -v -p -x path-to/tcp.pop3.cdb \--***
-u $VPOPMAILUID -g $VCHKPWGID 0 pop3 /var/qmail/bin/qmail-popup \
your.host.name.here ~vpopmail/bin/vchkpw \
/var/qmail/bin/qmail-pop3d Maildir 21

Cheers,

Chris
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




qmail guru's

2001-05-29 Thread chris herrmann

Having some strange qmail grief. I've installed qmail, then vpopmail and 
setup a couple of domains. Copied across some of the old config files (from 
a previous installation), and it's all looking fine.

The next day, I have a look through the logs for qmail-send, and notice that 
there were a lot of:

Temporary_error_on_maildir_delivery._(#4.3.0)/

messages appearing for a whole bunch of different users, in both domains. 
The maildirs are in the  same spot they used to be :

vpopmail/domains/domain.com/user/Maildir

The domains were created using vadddomain, and the users created using 
vadduser (ie. i didn't try and copy the files from the old config).

So that night... to make matters worse, I decided to get a little tricky 
with the default delivery locations, and changed the .qmail-postmaster  
.qmail-root files to point to user@domain rather than the directory 
location that they had up until this point pointed to. (was it then that 
Peter picked the pickled pepper?)

Sometime this morning (ie. the morning after) qmail stopped accepting 
messages:

Hi. This is the qmail-send program at gemini.faredge.com.au.
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.

[EMAIL PROTECTED]:
This message is looping: it already has my Delivered-To line. (#5.4.6)

--- Below this line is a copy of the message.

and in qmail-send/current

@40003b1551ed317c8a7c starting delivery 2308: msg 416918 to local 
gemini.faredge.com.au-po
[EMAIL PROTECTED]
@40003b1551ed317dedf4 status: local 1/10 remote 1/20
@40003b1551ed3229e94c delivery 2308: failure: 
Sorry,_no_mailbox_here_by_that_name._(#5.1.1
)/

and:

@40003b1553033653768c starting delivery 2311: msg 416908 to local 
faredge.com.au-matt@fare
dge.com.au
@40003b1553033654226c status: local 1/10 remote 1/20
@40003b15530336b8145c delivery 2311: deferral: 
Unable_to_chdir_to_maildir._(#4.2.1)/
@40003b15530336b91a14 status: local 0/10 remote 1/20

and:

@40003b1554cc0f6c8644 starting delivery 2343: msg 416920 to local 
faredge.com.au-support@f
aredge.com.au
@40003b1554cc0f6d0efc status: local 2/10 remote 0/20
@40003b1554cc0f7cf164 delivery 2342: failure: 
This_message_is_looping:_it_already_has_my_D
elivered-To_line._(#5.4.6)/
@40003b1554cc0f7d2044 status: local 1/10 remote 0/20
@40003b1554cc120c431c bounce msg 416918 qp 7861
@40003b1554cc120e277c end msg 416918
@40003b1554cc1214037c delivery 2343: failure: 
This_message_is_looping:_it_already_has_my_D
elivered-To_line._(#5.4.6)/

and a lot more of the same.

I've killed all the qmail processes, and from what I can work out there are 
2 problems here:

1. Mail isn't being successfully delivered to local users, which it then 
tries to bounce to postmaster
2. It tries to bounce to postmaster, and fails because postmaster is 
pointing at one the users that isn't working :o(((

How do I start working this? Arhhh!!!

Any suggestions to me, I'll summarise whatever I find out to the list. I'll 
be taking bets on how big a crater the box will make on the side of the 
pavement from 11 floors up. Winner takes 70% and the remainder goes to the 
house to fund a new box :o)

Cheers,

Chris
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.