PDA

View Full Version : Maildrop problem


maced0n
23rd December 2009, 04:45
Hi, I followed perfect lenny ISP 3 guide and with small changes everything went fine except that i cant receive emails.

This installation is in Linux-VServers and Lenny and everything is installed according to the guide except the quota part ( not available in this virtualization)

This is from mail.log

Command output: /usr/bin/maildrop: Unable to change to home directory

Master.cf

#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
#

Permissions are all fine.
>> ls -l /var/

drwx------ 5 vmail vmail 4096 Dec 22 21:45 vmail

>> maildrop -v
maildrop 2.0.4 Copyright 1998-2005 Double Precision, Inc.
GDBM/DB extensions enabled.
Courier Authentication Library extension enabled.
Maildir quota extension enabled.
This program is distributed under the terms of the GNU General Public
License. See COPYING for additional information.

>> maildrop -V 9 -d test@thelondoneye.org
maildrop: authlib: groupid=5000
maildrop: authlib: userid=5000
maildrop: authlib: logname=test@thelondoneye.org, home=/var/vmail, mail=/var/vmail/thelondoneye.org/test
maildrop: Changing to /var/vmail


I Googled whole day without success, probably this issue is related with the quota.


Any hints?

till
23rd December 2009, 12:25
Please post the output of:

grep vmail /etc/passwd

maced0n
23rd December 2009, 14:31
Please post the output of:

grep vmail /etc/passwd

grep vmail /etc/passwd
vmail:x:5000:5000::/home/vmail:/bin/sh

I don't think that there is a permission issue.

Also I forget to write, I can send an email without a problem.


As I said before can this be because my partition is mounted without a Quota ?

falko
24th December 2009, 15:01
What's your ISPConfig version?

maced0n
24th December 2009, 16:04
The latest one " ISPConfig 3.0.1.6 ".

I installed ISPConfig 3 on same identical server only this time mounted with quota, all conf files and permissions are same as before .

Everything is working OK now.

divendres
5th May 2010, 20:44
I'm having the same problem as you do. What do you mean by "mounted with quota". You have configured quota in your system?
I followed every step on the perfect server guide for debian lenny but i'm stuck with the problem of deferred mails.
Can someone give me any advise?

I'm running Debian Lenny and ISPConfig-3.0.2.1
The error is:
May 5 20:47:44 sipsda0005 postfix/pipe[29258]: 764354A81E0: to=<testing@example.com>, relay=maildrop, delay=6262, delays=6262/0.08/0/0.06, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to change to home directory. )

.mailfilter is receiving everything empty:
.mailfilter(5): LOGNAME="testing@example.com"
.mailfilter(6): EXTENSION=""
.mailfilter(7): RECIPIENT=""
.mailfilter(8): USER=""
.mailfilter(9): HOST=""
.mailfilter(10): SENDER=""

till
5th May 2010, 21:03
If you followed the guide, then you have quota enabled. So that should be ok.

Please ost the output of:

ls -la /var/vmail/

and the content of the postfix master.cf file.

divendres
5th May 2010, 21:20
ls -la /var/vmail
sipsda0005:/var/log# ls -la /var/vmail/
total 20
drwxr-xr-x 4 vmail vmail 4096 2010-05-05 20:57 .
drwxr-xr-x 16 root root 4096 2010-05-05 09:20 ..
-rw-r--r-- 1 root root 0 2010-05-05 20:07 ispconfig_mailsize
-rw------- 1 vmail vmail 1382 2010-05-05 20:06 .mailfilter
drwxr-xr-x 2 vmail vmail 4096 2010-05-05 09:20 mailfilters
drwxr-xr-x 3 root root 4096 2010-05-05 20:10 example.com

master.cf:
smtp inet n - - - - smtpd -o content_filter=spamassassin
smtps inet n - - - - smtpd -o content_filter=spamassassin
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticate d,reject
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ================================================== ==================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ================================================== ==================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}

spamassassin unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}

amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1

divendres
5th May 2010, 21:21
I did not change any of postfix configuration files, it was all made automatically by ispconfig installation

till
5th May 2010, 21:22
The domain directory in the vmail folder has the wrong owner. Please run:

chown -R vmail:vmail /var/vmail

to fix this.

divendres
5th May 2010, 21:30
The owner was set when i created the domain and the mailbox using the web control panel.
I changed them as you say but i still have the same problem:

May 5 21:28:02 hosting postfix/pickup[3611]: A33194A8172: uid=0 from=<root>
May 5 21:28:02 hosting postfix/cleanup[3769]: A33194A8172: message-id=<20100505192802.A33194A8172@hosting.example.com>
May 5 21:28:02 hosting postfix/qmgr[3612]: A33194A8172: from=<root@example.com>, size=350, nrcpt=1 (queue active)
May 5 21:28:03 hosting postfix/smtpd[3776]: connect from localhost[127.0.0.1]
May 5 21:28:03 hosting postfix/smtpd[3776]: 858BF4A8171: client=localhost[127.0.0.1]
May 5 21:28:03 hosting postfix/cleanup[3769]: 858BF4A8171: message-id=<20100505192802.A33194A8172@hosting.example.com>
May 5 21:28:03 hosting postfix/qmgr[3612]: 858BF4A8171: from=<root@example.com>, size=1063, nrcpt=1 (queue active)
May 5 21:28:03 hosting amavis[2872]: (02872-01) Passed CLEAN, <root@example.com> -> <testing@example.com>, Message-ID: <20100505192802.A33194A8172@hosting.example.com>, mail_id: WxQcaiGr8vcA, Hits: 2.484, size: 350, queued_as: 858BF4A8171, 787 ms
May 5 21:28:03 hosting postfix/smtp[3772]: A33194A8172: to=<testing@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.1, delays=0.27/0.05/0.02/0.78, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02872-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 858BF4A8171)
May 5 21:28:03 hosting postfix/qmgr[3612]: A33194A8172: removed
May 5 21:28:03 hosting postfix/pipe[3782]: 858BF4A8171: to=<testing@example.com>, relay=maildrop, delay=0.25, delays=0.08/0.03/0/0.15, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to change to home directory. )

till
5th May 2010, 21:32
Please post the output of:

grep vmail /etc/passwd

and again the output of:

ls -la /var/vmail

divendres
5th May 2010, 21:35
hosting:/var/vmail# grep vmail /etc/passwd
vmail:x:5000:5000::/home/vmail:/bin/false

ls -la /var/vmail
hosting:/var/vmail# ls -la /var/vmail
total 24
drwxr-xr-x 4 vmail vmail 4096 2010-05-05 21:31 .
drwxr-xr-x 16 root root 4096 2010-05-05 09:20 ..
-rw-r--r-- 1 vmail vmail 4 2010-05-05 21:31 ispconfig_mailsize
-rw------- 1 vmail vmail 1382 2010-05-05 20:06 .mailfilter
drwxr-xr-x 2 vmail vmail 4096 2010-05-05 09:20 mailfilters
drwxr-xr-x 3 vmail vmail 4096 2010-05-05 20:10 example.com

till
5th May 2010, 21:44
Please change line for the vmail user in the /etc/passwd file to:

vmail:x:5000:5000::/var/vmail:/bin/sh

I guess that there was a vmail user present in /etc/passwd before ispconfig was installed.

divendres
5th May 2010, 22:08
delivered via maildrop service

Thanks a lot :D