Dear all,
I am setting up a simple mail sending scheme using msmtp and mailx.
My set up is pretty similar to what I saw in
http://www.klenwell.com/is/UbuntuCommandLineGmail , the only difference
being that I'm setting up global configuration files instead of local ones.
My /etc/msmtprc:
account itc
host mail.itc.net
from [email protected]
auto_from off
auth plain
user user
password pw
I'm testing the email with:
echo "Hi there" | mailx -s "Hello World" [email protected]
The problem: *the mail arrives at the destination with (unknown sender),
even though I have "from" defined in msmtp!*
The only way I can have it arriving with from field is by explicitly
setting it in /etc/nail.rc:
set from="[email protected] (YOURNAME)"
I've tried a combination of from/auto_from (without from, with from and
auto_from on) without success.
Shouldn't these 2 msmtp settings define the from field? Why do I need to
define it in nailrc? Is it because it's the responsibility of the client to
set that up? I find it odd that I'd have to define it twice (in msmtp +
nailrc) and that I have to define it in a mailx's environment variable.
Thank you in advance for your help,
Miguel Almeida
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
msmtp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msmtp-users