1 message in net.sourceforge.lists.courier-maildrop[maildropl] maildroprc SegFault
FromSent OnAttachments
Tony RiniAug 23, 2002 3:58 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] maildroprc SegFaultActions...
From:Tony Rini (to@blazarium.com)
Date:Aug 23, 2002 3:58:43 pm
List:net.sourceforge.lists.courier-maildrop

I'm using qmail/vpopmail/maildrop/spamassassin I added | maildrop to a domains .qmail-default file and maildrop works well with a minimal instruction set. What I'm trying to do is write a maildroprc that will bounce mail if there's no such user. When I run the maildroprc below I get a deferral: Segmentation_Fault_-_core_dumped/ error when sending to VALID addresses. Mail is being bounced when sent to bad addresses (good).

I put the code to bounce bad email at the top of the script so that we don't need to filter bad email before bouncing it. I'm new to maildrop so my script could be way off, I've been trying to learn by hacking examples I've found.

Can someone please give me a little feedback on this script and maybe point out any really obvious mistakes I'm making. I think that with a little tinkering this script could work. I want to add a check to see if the user has their own mailfilter and user_prefs files but bouncing bad email is more of a priority right now.

# --- Global Mailfilter Rules --- # --- Script Start --- import EXT import HOST VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" VHOME=`/home/vpopmail/bin/vuserinfo -d $EX@$HOST` if($VHOME == /"no such user ${EXT}@${HOST}"/) { to $VPOP exit }

if($SIZE < 262144) { xfilter "/usr/local/bin/spamc -f -u vpopmail" } else { to $VHOME/Maildir exit }

if(/^X-Spam-Flag: *YES/) { `test -d $VHOME/Maildir/.JunkMail` if($RETRUNCODE != 1) { to $VHOME/Maildir/.JunkMail exit } else { to $VHOME/Maildir exit } } else { to $VHOME/Maildir exit } # --- End ---