9 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Postfix/maildrop driv...
FromSent OnAttachments
Rob BrandtJul 2, 2005 11:28 pm 
Tony EarnshawJul 3, 2005 2:30 am 
Jasper SlitsJul 3, 2005 5:55 am 
Tony EarnshawJul 3, 2005 7:11 am 
Rob BrandtJul 3, 2005 3:42 pm 
Rob BrandtJul 3, 2005 10:50 pm 
Rob BrandtJul 3, 2005 11:33 pm 
Tony EarnshawJul 4, 2005 2:35 am 
Tony EarnshawJul 4, 2005 2:35 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Postfix/maildrop driving me nutsActions...
From:Tony Earnshaw (ton@billy.demon.nl)
Date:Jul 3, 2005 2:30:47 am
List:net.sourceforge.lists.courier-maildrop

søn, 03.07.2005 kl. 08.27 skrev Rob Brandt:

I am attempting to get maildrop working with postfix/mysql. I have postfix/mysql working well with courier-authlib and -imap. Postfix is also hooked up to amavis-new/clamav/spamassassin, fwiw.

I would like to get this working where every domain uses maildrop. The problem that I am having is that there are multiple ways of configuring this, and since maildrop and courier-authlib were recently revised, the howto's I've found are dated and I'm not that confident that they're accurate anymore. Idially I would like the arrangement where maildrop is assigned as virtual_transport and each domain's delivery agent is "local". No matter what I've done, I can't get any mention of maildrop in my logs. I even created a .mailfilter with bad rules just to see if it could generate errors. The closest I've gotten is when I resorted to setting the delivery agent in the transports table to maildrop instead of local, and I got an error:

Jul 2 15:47:29 linux postfix/pipe[18677]: 952C0638AE: to=<rbra@amd64.csd-bes.net>, relay=maildrop, delay=0, status=deferred (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Temporary authentication failure. )

I'm using "mailuser" as the maildrop user, which is the user that has access to the maildirs.

Here are my main.cf and master.cf; there may be conflicting settings in them because of the multiple configuring options, but I don't recognize them. master.cf:

More important is, if you're using authlib and a recent version of maildrop, how is authlib's authmysqlrc configured? maildrop uses this now, not the old maildropmysqlrc or whatever it was (I use LDAP :)

Moreover: instead of worrying about logs too much, try saving a message as a file from your MUA and doing 'maildrop -V[3-5] -d us@domain.tld < message.eml' and maildrop should spit out where it's going wrong.

--Tonni

# ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - n - 2 smtpd -o content_filter=smtp:[127.0.0.1]:10024 #smtps inet n - n - 2 smtpd -o smtpd_tls_wrappermode=yes -o content_filter=smtp:[127.0.0.1]:10024 # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes #submission inet n - n - - smtpd # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 oqmgr #tlsmgr fifo - - n 300 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp relay unix - - n - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil localhost:10025 inet n - n - - smtpd -o content_filter= # # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # maildrop. See the Postfix MAILDROP_README file for details. # maildrop unix - n n - - pipe flags=DRhu user=maildrop argv=/usr/bin/maildrop -d ${recipient} cyrus unix - n n - - pipe user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) 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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}

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

127.0.0.1:10025 inet n - 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,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o receive_override_options=no_header_body_checks

here's main.cf: command_directory = /usr/sbin

daemon_directory = /usr/lib/postfix

permit_mx_backup = yes local_recipient_maps = $alias_maps mysql:/etc/postfix/mysql_virt.cf

unknown_local_recipient_reject_code = 550

home_mailbox = Maildir/

mailbox_transport = virtual

virtual_mailbox_maps = mysql:/etc/postfix/mysql_virt.cf

virtual_mailbox_base = /var/spool/postfix/virtual

virtual_uid_maps = mysql:/etc/postfix/ids.cf virtual_gid_maps = mysql:/etc/postfix/ids.cf

virtual_minimum_uid = 5000

debug_peer_level = 2

debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail newaliases_path = /usr/bin/newaliases

mailq_path = /usr/bin/mailq

setgid_group = maildrop

html_directory = /usr/share/doc/packages/postfix/html

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/packages/postfix/samples

readme_directory = /usr/share/doc/packages/postfix/README_FILES biff = no canonical_maps = hash:/etc/postfix/canonical virtual_maps = hash:/etc/postfix/virtual relocated_maps = hash:/etc/postfix/relocated transport_maps = hash:/etc/postfix/transport sender_canonical_maps = hash:/etc/postfix/sender_canonical masquerade_exceptions = root masquerade_classes = envelope_sender, header_sender, header_recipient myhostname = amd64.csd-bes.net program_directory = /usr/lib/postfix mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain, $transport_maps defer_transports = disable_dns_lookups = no smtpd_sender_restrictions = hash:/etc/postfix/access strict_rfc821_envelopes = no smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination smtp_sasl_auth_enable = no smtpd_sasl_auth_enable = no smtpd_use_tls = no smtp_use_tls = no alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases mailbox_size_limit = 0

content_filter = smtp-amavis:[127.0.0.1]:10024 hash_queue_depth = 2 virtual_alias_maps = hash:/etc/postfix/virtual,hash:/var/lib/mailman/data/virtual-mailman relay_domains = re-techtalk.com

maildrop_destination_concurrency_limit = 1 maildrop_destination_recipient_limit = 1 virtual_mailbox_domains = amd64.csd-bes.net virtual_transport = maildrop

!DSPAM:42c7898a44531167711292!