

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Invalid user error, what ...| From | Sent On | Attachments |
|---|---|---|
| Alberto | Jun 29, 2007 9:55 am | |
| Devin Rubia | Jun 29, 2007 10:16 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | [maildropl] Invalid user error, what else can I try??? | Actions... |
|---|---|---|
| From: | Alberto (lumi...@interfree.it) | |
| Date: | Jun 29, 2007 9:55:58 am | |
| List: | net.sourceforge.lists.courier-maildrop | |
Hi all,
In a Postfix-Mysql-maildrop enviroment I've the invalid user error from maildrop. I search on google and in the archives of this ML but still don't found a solution to solve my problem. Maildrop doesn't knows the user that the -d option pass through but courierauthtest seems ok, what else should I try? Thanks to all for any help!!
Here some informations
OS: Ubuntu 6.06
the error from mail.log Jun 29 17:46:30 mail postfix/pipe[5296]: 047C168146: to=<ba0...@sample.com>, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. )
mailer@mail:/$ id vmail uid=1001(vmail) gid=1001(vmail) gruppi=1001(vmail),8(mail)
mailer@mail:/$ maildrop -v maildrop 2.0.4 Copyright 1998-2005 Double Precision, Inc. GDBM extensions enabled. This program is distributed under the terms of the GNU General Public License. See COPYING for additional information.
mailer@mail:/$ ls -l /usr/local/bin/maildrop -rwsr-xr-x 1 root mail 700755 2007-06-22 18:56 /usr/local/bin/maildrop
mailer@mail:/$ ls -l /var/run/courier/authdaemon/socket srwxrwxrwx 1 root root 0 2007-06-29 15:54 /var/run/courier/authdaemon/socket
mailer@mail:/$ ls -l /etc/maildroprc -rw-r--r-- 1 vmail vmail 1002 2007-06-29 18:04 /etc/maildroprc
mailer@mail:/$ ls -l /var/mail/cm000/ drwx------ 2 vmail vmail 4096 2007-06-29 18:07 cur drwx------ 2 vmail vmail 4096 2007-06-29 18:07 new drwx------ 2 vmail vmail 4096 2007-06-29 18:07 tmp
Postfix: From the main.cf
---------------------------------------------- virtual_transport = maildrop virtual_uid_maps = static:1001 virtual_gid_maps = static:1001 maildrop_destination_recipient_limit = 1
---------------------------------------------- From the master.cf
---------------------------------------------------------------------------------------- maildrop unix - n n - - pipe flags=DRqhu user=vmail argv=/usr/local/bin/maildrop -d ${user}
----------------------------------------------------------------------------------------
This way seems to works: vmail@mail:/$ cat /home/mailer/posta.eml | maildrop -V 5 -d vmail maildrop: Changing to /home/vmail Message start at 0 bytes, envelope sender=vmail Matching /^Delivered-To:\s*.+/ against Return-Path: <ba0...@sample.com> Not matched. Matching /^Delivered-To:\s*.+/ against X-Original-To: mat...@sample.com Not matched. Matching /^Delivered-To:\s*.+/ against Delivered-To: cm0...@sample.com /etc/maildroprc(2): Search of ^Delivered-To:\s*.+ = 1 /etc/maildroprc(3): RECIPIENT="cm0...@sample.com " maildrop: Filtering through `echo default="$DEFAULT" > /tmp/po` maildrop: Filtering through `echo recipient="$RECIPIENT" >> /tmp/po` maildrop: Filtering through `echo maildir=$MAILDIR >> /tmp/po` /etc/maildroprc(11): USER="" /etc/maildroprc(12): DOMAIN="" /etc/maildroprc(13): Evaluating IF condition. Matching /(.*)@([^@]+)/ against cm0...@sample.com
/etc/maildroprc(13): Search of (.*)@([^@]+) = 1 /etc/maildroprc(13): IF evaluated, result=1 /etc/maildroprc(15): USER="cm000" /etc/maildroprc(16): DOMAIN="sample.com " /etc/maildroprc(24): DEFAULT="/var/spool/mail/cm000/Maildir/" /etc/maildroprc(25): MAILDIR="/var/spool/mail/cm000/" maildrop: Filtering through `echo rcpt=$RECIPIENT >> /tmp/po` maildrop: Filtering through `echo user=$USER >> /tmp/po` maildrop: Filtering through `echo domain=$DOMAIN >> /tmp/po` maildrop: Filtering through `test -e /var/spool/mail/$USER` /etc/maildroprc(35): Evaluating IF condition. /etc/maildroprc(35): IF evaluated, result=0 /etc/maildroprc(43): Opening logfile /var/log/drop.log maildrop: Filtering through `date +%s` /etc/maildroprc(47): TICKS="1183132641" maildrop: Filtering through `date +%T` /etc/maildroprc(48): DATE="17:57:21" maildrop: Filtering through `date +%x` /etc/maildroprc(49): TIME="06/29/07" maildrop: Delivery complete.
With virtual users doesn't works mailer@mail:/$ cat /home/mailer/posta.eml | maildrop -V 5 -d ba0...@sample.com Invalid user specified.
Authtest seems ok mailer@mail:/$ sudo courierauthtest cm0...@sample.com Trying authdaemon... Authenticated: module authdaemon Home directory: /var/mail UID/GID: 1001/1001 Maildir: cm000/ AUTHADDR=cm0...@sample.com AUTHFULLNAME=Matteo OPTIONS=<none>
This is /etc/maildroprc, there are some strings just for debug
-------------------------------------------- #!/bin/bash /^Delivered-To:\s*.+/ RECIPIENT=getaddr($MATCH) #DEFAULT="/var/spool/mail/$RECIPIENT/Maildir/"
`echo default="$DEFAULT" > /tmp/po` `echo recipient="$RECIPIENT" >> /tmp/po` `echo maildir=$MAILDIR >> /tmp/po`
# split the recipient into user and domain parts USER="" DOMAIN="" if ( ${RECIPIENT} =~ /(.*)@([^@]+)/ ) { USER=${MATCH1} DOMAIN=${MATCH2} } else { #no domain part USER=${RECIPIENT} } DEFAULT="/var/spool/mail/$USER/Maildir/" MAILDIR="/var/spool/mail/$USER/" `echo rcpt=$RECIPIENT >> /tmp/po` `echo user=$USER >> /tmp/po` `echo domain=$DOMAIN >> /tmp/po` # Autocreate maildir, if not existant # `test -e /var/spool/mail/$USER` if ( $RETURNCODE != 0 ) { `/usr/local/bin/maildirmake /var/spool/mail/$USER` `chmod -R 0700 /var/spool/mail/$USER` } logfile "/var/log/drop.log" # # Set date/time # TICKS=`date +%s` DATE=`date +%T` TIME=`date +%x` # # Start logging # log "$TICKS : *** Maildrop filtering for $RECIPIENT $DATE $TIME" log "$TICKS : >>> Sender: $SENDER" to "$MAILDIR"







