On Wed, March 14, 2012 11:08, Richard C. Steffens wrote:
> Tim Bruce wrote:
>
>> You should continue to use mailx (or other tool) for the command.  ssmtp
>> will pick up the email and forward it on (if it's configured correctly).
>>
>> something like:
>>
>> echo "Don't forget the doctor's appointment" | mailx -s "Reminder"
>> user@domain
>>
>> mailx will hand it to ssmtp and ssmtp just takes the message coming from
>> mailx and forwards it to the appropriate MTA that is configured (in
>> /etc/ssmtp/ssmtp.conf) for delivery to the user(s).
>
> rsteff@moonguide:~$ echo "This is a test." | mailx -s "Testing"
> [email protected]
> send-mail: 550 5.1.0 <rsteff@[email protected]> invalid address
> Can't send mail: sendmail process failed with error code 1
> rsteff@moonguide:~$
>
>> mailx should NOT require root/sudo.  Neither should ssmtp (it's just
>> running as a background "service" (kinda) and takes what it receives
>> from
>> mailx and forwards it to the MTA.  I hope that's clearer.
>
> Okay. No sudo required from the command line for mailx or ssmtp. But
> something wrong with the address in mailx. I tried the -d option in
> mailx, which gives more information and got this:
>
> rsteff@moonguide:~$ echo "This is a test." | mailx -d -s "Testing"
> [email protected]
> user = rsteff, homedir = /home/rsteff
> Sendmail arguments: "send-mail" "-i" "--" "[email protected]"
>
>
> Nothing else happened. No error message, but no mail sent, either.
>
> I tried verbose mode and got this:
>
> rsteff@moonguide:~$ echo "This is a test." | mailx -v -s "Testing"
> [email protected]
> [<-] 220 omta04.emeryville.ca.mail.comcast.net comcast ESMTP server ready
> [->] EHLO [email protected]
> [<-] 250 OK
> [->] STARTTLS
> [<-] 220 2.0.0 Ready to start TLS
> [->] EHLO [email protected]
> [<-] 250 OK
> [->] AUTH LOGIN
> [<-] 334 VXNlcm5hbWU6
> [->] cnN0ZWZmQGNvbWNhc3QubmV0
> [<-] 334 UGFzc3dvcmQ6
> [<-] 235 2.7.0 ... Authentication succeeded
> [->] MAIL FROM:<rsteff@[email protected]>
> [<-] 550 5.1.0 <rsteff@[email protected]> invalid address
> send-mail: 550 5.1.0 <rsteff@[email protected]> invalid address
> Can't send mail: sendmail process failed with error code 1
>
> How do I tell mailx to just use [email protected], and not prefix it
> with rsteff@?
>
>
> --
> Regards,
>
> Dick Steffens
>
>
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
>


You may want to check how you're formatting / connecting to comcast.  It
may be comcast is adding the rsteff on, in which case maybe you want to
drop the email address.

The other possibility is it's configured inside the ssmtp
(/etc/ssmtp/ssmtp.conf).  It could also be there is some other mail MTA
running that ssmtp is forwarding the email to.

In short it looks like something is adding "rsteff@" onto the
rsteff@comcast you're passing into ssmtp.  (Maybe ~/.mailrc?)

Tim
-- 
Timothy J. Bruce

visit my Website at: http://www.tbruce.com
Registered Linux User #325725


_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to