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'.