Doc Walker | 2 Mar 21:16 2005
Picon

What is best way to CC: subject header to another email account?

What is the best way to CC: the subject of a message to another email
account?

I would like to file certain emails in my inbox and send a short message
with the subject header as a text message to my cell phone.

In my .mailfilter:

/^Subject:.*/
cc "| mail -s $MATCH <someone <at> somedomain.com>"
to $DEFAULT

I'm not sure whether to use the sendmail (Postfix) command or mail. Also,
I'm not sure whether this is the most proper syntax. I'm currently getting
an error because I use virtual mailbox domains within Postfix and I don't
actually have a user with the UID/GID of the owner of my .mailfilter file.

Thanks.

Rx

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
Stefan Wallentowitz | 3 Mar 00:12 2005
Picon

$MAILFILTER or something

Hello!

I have a question concerning the environment variables I can use in 
mailfilter.
I use authlib-0.53 and maildrop-1.8.0 and everything works fine. Now I'm 
trying another configuration where home and maildir are seperated, which 
means e.g. /home/vmail/homes/ vs. /home/vmail/mails/.
Maildrop takes the mailfilter-files in the home-directory, but is there 
also a possibility to use the mail-field variable given by authlib 
beside hard-coding the mail-dir (what is possible but not my first 
choice). I tried $MAILFILTER ..

Thanks so far,
Stefan

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Sam Varshavchik | 3 Mar 00:48 2005

Re: What is best way to CC: subject header to another email account?

Doc Walker writes:

> What is the best way to CC: the subject of a message to another email
> account?
> 
> I would like to file certain emails in my inbox and send a short message
> with the subject header as a text message to my cell phone.
> 
> In my .mailfilter:
> 
> /^Subject:.*/
> cc "| mail -s $MATCH <someone <at> somedomain.com>"
> to $DEFAULT

That's an excellent way for someone to screw you, by sending you an E-mail 
message with the subject set to

Subject:  `rm -rf $HOME`

> I'm not sure whether to use the sendmail (Postfix) command or mail. Also,
> I'm not sure whether this is the most proper syntax. I'm currently getting
> an error because I use virtual mailbox domains within Postfix and I don't
> actually have a user with the UID/GID of the owner of my .mailfilter file.

I suggest:

cc '| echo "Subject: $MATCH" | sendmail someone <at> somedomain.com'

Pay attention to quoting.

(Continue reading)

jay | 4 Mar 01:08 2005
Picon

maildrop 1.8.0 upgrade - can't flock()

I just upgraded maildrop to 1.8 on my server and I'm having issues.  I
originally had the FreeBSD port installed - but the 1.8 port won't
compile (the freebsd team is looking into it).  So I decided to
upgrade by compiling source from a tarball.  Easy enough.

The configure line I'm using is:
./configure --prefix=/usr/local --enable-syslog=1 --enable-use-flock=1
--with-etcdir=/usr/local/etc --enable-maildrop-uid=root
--enable-maildrop-gid=mail --enable-maildirquota

That's the *exact* configure line the port would be using.

As soon as I installed it I started getting delivery failures saying
that maildrop failed and it's deferring the message for later
delivery.  Looking at the logs, this is what I have:

 <at> 400000004227999d3691d364 delivery 144: deferral:
/usr/local/bin/maildrop:_flock()_failed./
 <at> 400000004227999d36945fbc status: local 7/10 remote 0/20
 <at> 400000004227999e2c054f5c delivery 141: deferral:
DCC_->_check_failed:_cannot_open_/tmp/spamassassin.4233.kVtG2j.tmp:_No_such_file_or_directory_at_/usr/local/lib/perl5/site_perl/5.8.6/Mail/SpamAssassin/Util.pm_line_1048.//Filehandle_STDIN_reopened_as_LTMP_only_for_output_at_/usr/local/lib/perl5/site_perl/5.8.6/Mail/SpamAssassin/Locker/UnixNFSSafe.pm_line_71./Filehandle_STDIN_reopened_as_LTMP_only_for_output_at_/usr/local/lib/perl5/site_perl/5.8.6/Mail/SpamAssassin/Locker/UnixNFSSafe.pm_line_139.//usr/local/bin/maildrop:_flock()_failed./

In my mailog I get this:
Mar  3 16:06:44 fiend maildrop[41560]: flock() failed.

Not very descriptive, I know. :)

What I've got maildrop doing is passing everything through
spamassassin using a preline in my .qmail before it executes my own
filters.  Pretty standard, I think.It's worked for a long while now
(Continue reading)

Sam Varshavchik | 4 Mar 00:24 2005

Re: maildrop: maildir overquota

Alessio Cecchi writes:

> Dear
> 
> i have setup a vpopmail + qmail + courier-imap + maildrop mail server. I 
> have setup vpopmail with .over-quota.msg in /home/vpopmail/domains.
> 
> But if a set a .qmail (with |preline /usr/bin/maildrop .mailfilter) file 
> for an user the messagess in .over-quota.msg is replaced with:
> 
> maildrop: maildir overquota
> 
> Can i edit this messagges?

Certainly.  After all, you have the source code.

Alessio Cecchi | 3 Mar 17:52 2005
Picon

maildrop: maildir overquota

Dear

i have setup a vpopmail + qmail + courier-imap + maildrop mail server. I 
have setup vpopmail with .over-quota.msg in /home/vpopmail/domains.

But if a set a .qmail (with |preline /usr/bin/maildrop .mailfilter) file 
for an user the messagess in .over-quota.msg is replaced with:

maildrop: maildir overquota

Can i edit this messagges?

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Chris Petersen | 4 Mar 19:17 2005
Picon

xfilter question

I'm currently trying to set up an xfilter, but not sure how to get 
maildrop to do what I want with it.

Basically, I'm receiving an email from a customer containing some info 
to schedule an order.  I then send it to an xfilter, which parses the 
message content to verify validity, post the data to a URL (mail server 
doesn't have direct access to the DB), and then return success or error.

A successful entry should set EXITCODE=99, other error codes are also 
passed back via $RETURNCODE.  My problem is that I'd like to be able to 
print messages back to the user..  So if there is a permanent failure 
(like the message coming from an unlisted IP address, or a data-format 
error) I can tell the sender exactly what went wrong, but maildrop seems 
to freak out of my xfilter returns nonzero (and/or prints to STDERR, I'm 
not sure which, since the STDERR does show up in the maillog)

Other errors (like the web/db server being down) would return a temorary 
failure and requeue the message.

Is there a way to do something like this?  I was trying to keep as much 
as possible in my script (just to keep the mailfilter file somewhat 
clean), though I guess I can just change my return codes to something 
custom, and handle them in the mailfilter file (as long as it won't 
freak out for a nonzero returncode).  I don't actually need xfilter (I 
don't want to modify the message), but it was the only way I could 
clearly see that would get the message content (headers and body) into 
my script.

-Chris Petersen

(Continue reading)

Devin Rubia | 4 Mar 19:40 2005
Picon

Re: xfilter question

On Fri, Mar 04, 2005 at 10:17:29AM -0800, Chris Petersen wrote:
> I'm currently trying to set up an xfilter, but not sure how to get 
> maildrop to do what I want with it.
> 
> Basically, I'm receiving an email from a customer containing some info 
> to schedule an order.  I then send it to an xfilter, which parses the 
> message content to verify validity, post the data to a URL (mail server 
> doesn't have direct access to the DB), and then return success or error.
> 
> A successful entry should set EXITCODE=99, other error codes are also 
> passed back via $RETURNCODE.  My problem is that I'd like to be able to 
> print messages back to the user..  So if there is a permanent failure 
> (like the message coming from an unlisted IP address, or a data-format 
> error) I can tell the sender exactly what went wrong, but maildrop seems 
> to freak out of my xfilter returns nonzero (and/or prints to STDERR, I'm 
> not sure which, since the STDERR does show up in the maillog)
> 
> Other errors (like the web/db server being down) would return a temorary 
> failure and requeue the message.
> 
> Is there a way to do something like this?  I was trying to keep as much 
> as possible in my script (just to keep the mailfilter file somewhat 
> clean), though I guess I can just change my return codes to something 
> custom, and handle them in the mailfilter file (as long as it won't 
> freak out for a nonzero returncode).  I don't actually need xfilter (I 
> don't want to modify the message), but it was the only way I could 
> clearly see that would get the message content (headers and body) into 
> my script.

You don't want xfilter, you want cc.
(Continue reading)

Doc Walker | 4 Mar 07:11 2005
Picon

Re: What is best way to CC: subject header to another email account?

Sam Varshavchik wrote:
> I suggest:
> 
> cc '| echo "Subject: $MATCH" | sendmail someone <at> somedomain.com'
> 
> Pay attention to quoting.
> 

That works. Thanks.

Rx

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Alessio Cecchi | 4 Mar 16:36 2005
Picon

Re: maildrop: maildir overquota

Sam Varshavchik ha scritto:

>> maildrop: maildir overquota
>>
>> Can i edit this messagges?
> 
> 
> Certainly.  After all, you have the source code.

Thanks Sam

this is a good suggestion, I had not thought to us.

But i suppose that there is no metod for use the .over-quota.msg 
functions of vpopmail, because maildrop check Maildir before of vpopmail?

Thanks

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

Gmane