I've tried what you said, but it's not quite working.
Here's some data:
- The user name at the local computer of the user starting pine is 'username'
- The host that's running qmail and pine is 'hostname.somewhere.com'
- The user name at the mail server is 'othername'
- The domain for which the mail server is handling mail is 'somewhere.com'
- The hostname of the mail server is 'realname.somewhereelse.com'
Like I said I would like to be able to send mail with 'othername@somewhere.com' in the From line. But now I have 'username@somewhere.com' in there.
From /etc/pine.conf:
sendmail-path=/usr/lib/sendmail -oem -oi -t
(which is the sendmail wrapper provided by qmail)
/home/username/.qmail:
./Maildir/
/home/username/.fetchmailrc:
poll realname.somewhereelse.com
protocol POP3 username '
othername' password '
somepassword' is
username here
forcecr fetchall
mda "/var/qmail/bin/qmail-inject
username"
From /home/username/.pinerc:
user-domain=somewhere.com
customized-hdrs=From: Myname <othername@somewhere.com>
I have also tried using
sendmail-path=/usr/lib/sendmail -oem -oi -t -f
othername@somewhere.com
and
sendmail-path=/usr/lib/sendmail -oem -oi -t -f
othername
in /etc/pine.conf, but that didn't work either.
In /var/log/qmail.log I can see:
info msg 292298: bytes 346 from <othername@somewhere.com> qp 12600 uid 501
starting delivery 23: msg 292298 to remote
someguy@computer.net
status: local 0/20 remote 1/90
delivery 23: success: xxx.xxx.xxx.xxx_accepted_message./Remote_host_said:_250_2.0.0_g08M8ROf072068_Message_accepted_for_delivery/
status: local 0/20 remote 0/90
end msg 292298
But still that person saw the mail came from
username@somewhere.com.
Help, pls! =(