4 messages in net.sourceforge.lists.courier-maildrop[maildropl] trying to get /usr/local/...
FromSent OnAttachments
Richard BatesJun 19, 2007 8:40 am 
Tony EarnshawJun 19, 2007 8:57 pm 
Devin RubiaJun 28, 2007 8:01 am 
Tony EarnshawJun 28, 2007 9:37 pm 
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:[maildropl] trying to get /usr/local/etc/maildroprc to workActions...
From:Richard Bates (rich@gmail.com)
Date:Jun 19, 2007 8:40:45 am
List:net.sourceforge.lists.courier-maildrop

I am in the middle of a new mailserver config.

FYI: On the original Mailserver I used Qpopper. on this mailserver I am using courier-imap so these configs are new to me.

I have FreeBSD 6.2 with postfix,procmail,tls,sasl2, and maildrop installed

I got it to where I can send (postfix) and receive(IMAP) email I am trying to get spamassassin to kick in.

when I create a copy of an email the command cat mssg1|spamc -u spamd -d 10.0.6.102 -H

works and puts the spamd tags in the message.

I followed instructions on http://www.phparchitecture.com/howto_show.php?id=2 but I must be missing something.

here are my config files main.cf, master.cf, maildroprc and SampleEmail +++ CLIP /usr/local/etc/postfix/main.cf queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix mail_owner = postfix home_mailbox = Maildir/ unknown_local_recipient_reject_code = 450 debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont; echo where) | gdb $daemon_directory/$process_name $process_id 2>&1

$config_directory/$process_name.$process_id.log & sleep 5

sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no # alias_maps = hash:/usr/local/etc/postfix/aliases, mysql:/usr/local/ etc/postfix/mysql-alias.cf alias_maps = hash:/usr/local/etc/postfix/aliases, hash:/usr/local/etc/ postfix/THAliases #alias_database = hash:/usr/local/etc/postfix/aliases

myhostname = mail2.MYDOMAIN.COM mydomain = MYDOMAIN.COM mydestination = MYDOMAIN.COM,mail2.MYDOMAIN.COM, 172.18.1.8,209.137.140.6,telehosue.com

disable_vrfy_command = yes mailbox_size_limit = 512000000 message_size_limit = 10485770 local_destination_concurrency_limit = 15 masquerade_domains = $mydomain masquerade_exceptions = root

# mailbox_command = /usr/local/bin/procmail -Y -a $DOMAIN # mailbox_command = /usr/local/bin/maildrop ${revipient} mailbox_command = /usr/local/bin/maildrop ${revipient} broken_sasl_auth_clients = yes smtpd_helo_required = yes mynetworks = 127.0.0.0/8 smtpd_sender_restrictions = permit_mynetworks, reject_rhsbl_sender sbl.spamhaus.org smtpd_client_restrictions = permit_mynetworks, reject_rbl_client sbl.spamhaus.org smtpd_recipient_limit = 10000

always_bcc = mailmanager

unknown_local_recipient_reject_code = 550 # SASL SUPPORT FOR CLIENTS smtpd_sasl_authenticated_header = yes smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_rhsbl_recipient sbl.spamhaus.org, reject_unauth_destination # TLS SUPPORT smtpd_tls_CAfile = /usr/local/etc/postfix/ssl/smtpd.pem #smtpd_tls_auth_only = yes smtpd_tls_cert_file = /usr/local/etc/postfix/ssl/smtpd.pem smtpd_tls_key_file = /usr/local/etc/postfix/ssl/smtpd.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes smtp_tls_note_starttls_offer = yes tls_random_source = dev:/dev/urandom

# smtpd_tls_wrappermode = yes

=== END CLIP

=== CLIP /usr/local/etc/postfix/master.cf # # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # ======================================================================== == # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ======================================================================== == smtp inet n - n - - smtpd #submission inet n - n - - smtpd # -o smtpd_enforce_tls=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject #smtps inet n - n - - smtpd # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,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 unix - - n 1000? 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 # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - n - - smtp -o fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error discard unix - - n - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 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=R user=vmail argv=/usr/local/bin/maildrop -d ${recipient} # flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} # # The Cyrus deliver program has changed incompatibly, multiple times. # old-cyrus unix - n n - - pipe flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user} # Cyrus 2.1.5 (Amos Gouaux) # Also specify in main.cf: cyrus_destination_recipient_limit=1 cyrus unix - n n - - pipe user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} # # 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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient === END CLIP === CLIP /usr/local/etc/maildroprc if ( $SIZE < 26144 ) { xfilter "spamc -u spamd -d 10.0.6.102 -H" } === END CLIP

=== CLIP SampleEmail Return-Path: <bat@MYDOMAIN.COM> X-Original-To: bat@mail2.MYDOMAIN.COM Delivered-To: bat@mail2.MYDOMAIN.COM Received: from [172.18.1.139] (BatesiBook.MYDOMAIN.COM [172.18.1.139]) (Authenticated sender: bat@mail2.MYDOMAIN.COM) by mail2.MYDOMAIN.COM (Postfix) with ESMTP id 948155C36C for <bat@mail2.MYDOMAIN.COM>; Tue, 19 Jun 2007 11:39:14 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <D8CA@mail2.MYDOMAIN.COM> Content-Type: text/plain; charset=US-ASCII; format=flowed To: bat@mail2.MYDOMAIN.COM From: Richard Bates <bat@mail2.MYDOMAIN.COM> Subject: test Date: Tue, 19 Jun 2007 11:39:13 -0400 X-Mailer: Apple Mail (2.752.3)

test

=== END CLIP