2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Maildrop Forwarding with ...
FromSent OnAttachments
Stefan SchatzlMay 30, 2003 3:56 am 
Devin RubiaMay 30, 2003 4:42 am 
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] Maildrop Forwarding with $SENDMAILActions...
From:Stefan Schatzl (stef@rubig.com)
Date:May 30, 2003 3:56:40 am
List:net.sourceforge.lists.courier-maildrop

Hi,

I am using the sample vacation code from the maildropex(5) manpage (with GDBM). It does quite well its job, but I have a major headache which was not solvable alone.

The following line .. to "| ( cat - ; echo ''; cat vacation.msg) | $SENDMAIL" ...

produces an email from 'user@domain'. It is quite annoying that $SENDMAIL or maildrop ignores MAILHOST or such things like -f $USER@$HOSTNAME...

Is there a possibility to get a correct 'us@domain.example.com' in the From: Header line?

My configuration: maildrop 1.5.1 (from courier package) sendmail (from courier 0.40.2) courier 0.40.0 package (all stuff enabled except fax, webmail)

showconfig shows the following stuff (I snipped the non-smtp stuff and replaced my real base domain with example.com):

defaultdomain: mail.example.com - domain to append to addresses by default dsnfrom: "Courier mail server at mail.example.com" <@> - return address on delivery status notifications esmtpacceptmailfor: mail.example.com - accept mail for these domains via SMTP esmtpgreeting: mail.example.com ESMTP - my ESMTP identification banner esmtphelo: mail.example.com - my parameter to the HELO/EHLO SMTP verbs msgidhost: mail.example.com - hostname used in generating Message-ID: headers me: mail.example.com - my hostname

maildrop seems to run under the local username. $HOSTNAME produces mail.example.com $LOGNAME produces the username ($DEFAULT is under maildrop ./Maildir) ($SENDMAIL is /usr/local/courier/bin/sendmail)

hostname on the shell alone produces 'mail', hostname -f 'mail.example.com'.

I would appreciate any help or guidance how to fix the From: adress from 'user@mail' to the correct 'us@mail.example.com'.