Old 24th October 2009, 02:04
Manuel Manuel is offline
Junior Member
Join Date: Oct 2009
Posts: 11
Thanks: 0
Thanked 2 Times in 2 Posts
Default Need help with a script


I’ve been following the Virtual Users and Domains with Postfix, Courier and MySQL (Debian Etch) tutorial by Falko Timme and I’m very happy with the results. Our system performs very well but we have a problem related to
a script we use.

Mail considered as spam in our system is sent to a quarantine directory. Then a script processes all the mail in the quarantine and send those under a certain score to the users maildirs at /home/vmail/domain/maildirs for user’s examination. The problem is that the script we use strips the original separation or line feeds between header and body (and the rest of the lines too) and so the mail is counted as only header and has zero bytes. Consequently mail messages are not readable and you only get pieces of them by cliking for example in “View full header” in a mail client.

Here are the lines:

#Process by recipient
# When there are a lot of recipients, the line X-Envelope-To: has one or several CRs.
# To prevent this, we cut until the next tag X-…type X-Quarantain…etc appears.
# We give the possibility of a maximum of 2048 additional lines in case of extensive list of To:
Envelope_To=`grep -A 2048 -m 1 ^X-Envelope-To: $tmpfile | xargs echo 2>/dev/null | cut -f2 -d:|sed -e 's/X-.*//g'`
deb "Mail recipients (X-Envelope-To): $Envelope_To"

Where are we doing wrong? Come somebody tell?

Thanks in advance

Last edited by Manuel; 24th October 2009 at 02:43.
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sql ledger using forum.. yurtboy1 General 19 25th December 2010 22:08
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 17:54
accessing CGI-BIN / odd script behaviour jamesls Installation/Configuration 2 2nd August 2009 08:16
MyDNS startup problem valter General 9 20th June 2009 18:31
Internet Explorer won't connect to my server wctaelectronics Server Operation 10 27th October 2008 22:14

All times are GMT +2. The time now is 00:28.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.