Re: [courier-users] maildrop autoreplies: $FROM missing?

This is a discussion on Re: [courier-users] maildrop autoreplies: $FROM missing? within the Courier-Imap forums, part of the Mail Servers and Related category; Hi, I'm sorry to insist on this subject, but I'm still stuck on the matter of getting autoreplies ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-03-2007
Lorenzo Perone
 
Posts: n/a
Default Re: [courier-users] maildrop autoreplies: $FROM missing?

Hi, I'm sorry to insist on this subject, but I'm still stuck on the
matter of getting autoreplies made by sqwebmail back to work.

Still - I have found out some more on the subject:
It looks like mailbot is not providing sendmail with a valid
sender (-f). This applies both to using the courier-sendmail
(/usr/local/bin/sendmail) as to the legacy built-in sendmail
(/usr/libexec/sendmail/sendmail). In fact, reading the manual,
it looks to me like it never happened before, yet it used
to work...

------ The short version ------

Autoreply-rules created by sqwebmail look like this, for example:

if (($SIZE > 1))
{
AUTOREPLYFROM=$FROM
`/usr/local/bin/mailbot -A "X-Sender: $FROM" -A "From:
$AUTOREPLYFROM" -m "./Maildir/autoresponses/urlaub" $SENDMAIL -t -f ""`
}

this rule produces a "sendmail: Unable to submit message" line
in /var/log/maillog and does not deliver the autoreply.

If I change it manually, and add a $FROM within
the quotes after -f, it works:

if (($SIZE > 1))
{
AUTOREPLYFROM=$FROM
`/usr/local/bin/mailbot -A "X-Sender: $FROM" -A "From:
$AUTOREPLYFROM" -m "./Maildir/autoresponses/urlaub" $SENDMAIL -t -f
"$FROM"`
}

Do You have any hint on what's going wrong?
Is this an sqwebmail problem, or a mailbot problem, or did I miss
something that changed?

I only found this in the ChangeLog,

2006-09-17 Mr. Sam <mrsam@courier-mta.com>

* maildrop/main.C (run): -f ""? I really mean it.

How is the sendmail binary supposed to know about the sender?
I'm a bit confused here...

Thank You a lot in advance for help...

Regards,
Lorenzo


------ The long version ------

Autoreplies which are set up with sqwebmail do not work.
Instead, the mail log reports: sendmail: Unable to submit message.

The setup:
FreeBSD 6-STABLE, running courier 0.54 (latest port release)

maildrop is called as set up in /usr/local/etc/courier/courierd:
DEFAULTDELIVERY='| /usr/local/bin/maildrop -V 2 -w 85'

/usr/local/etc/maildroprc

takes up the main processing (such as SA and other stuff),
and then passes it over to the local rules:

....
exception {
include "$HOME/.mailfilter"
}

The sqwebmail-generated file ($HOME/.mailfilter) looks like this:

#MFMAILDROP=2
#
# DO NOT EDIT THIS FILE. This is an automatically generated filter.

FROM='testuser@testdomain.dom'
import SENDER
if ($SENDER eq "")
{
SENDER=$FROM
}

##Op:islargerthan
##Header:
##Value:1
##Folder:+urlaub dsn=1 days=5
##From:
##PlainString
##Name:urlaubchen


if (($SIZE > 1))
{
AUTOREPLYFROM=$FROM
`/usr/local/bin/mailbot -A "X-Sender: $FROM" -A "From:
$AUTOREPLYFROM" -m "./Maildir/autoresponses/urlaub" $SENDMAIL -t -f ""`
}


to "./Maildir/."



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0