Re: Sending email from command line?
- From: buck <buck@xxxxxxxxxxx>
- Date: Mon, 12 Nov 2007 22:04:55 -0800
On Mon, 12 Nov 2007 21:38:29 -0500, Allen McIntosh
echo "Call from customer X" | mail -s "Call from customer X" -f
ubuntu postfix/smtp: D24476343E1: to=<fred@xxxxxxxx>,
relay=smtp.isp.tld [some_ip_here]:25, delay=0.37,
delays=0.08/0.04/0.22/0.03, dsn=5.0.0, dUmMy=bounced (host
smtp.isp.tld[some_ip_here] said: 504 <root@acme>: Sender address
rejected: need fully-qualified address (in reply to MAIL FROM
Is it possible to specify the FROM and TO fields from the command
line, and if yes, how?
The "to" address was OK, as the transcript shows. -f doesn't do what
you think it does. It's hard to fiddle with the "from" address. If it
was easy, it would be even easier to forge. I suspect it is possible to
fix the domain name (which is what postfix is complaining about) but
I'll leave that for someone who knows postfix to address. Making sure
there is a fully qualified name in /etc/hosts might be a good start.
What's wrong with configuring a text file containing
Subject: How to send email
This is the message'
And then send that with `sendmail --t < file'
- Prev by Date: hostname not visible when Linux PC receives IP from router DHCP
- Next by Date: How to find two processes connected locally (PF_UNIX)
- Previous by thread: Re: Sending email from command line?
- Next by thread: Re: Sending email from command line?