Afficher un message
Vieux 02/03/2006, 17h36   #1
spacemancw
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Specify SMTP in command line mail

I often send mail from the command line as follows

echo "Test2" | mail -s "testing2" me@my.domain

I'm on OS X panther, running Postfix. I have a fallback host and mail
is relayed after all the DNS choices time out.

Is it possible to specify the SMTP server in the command line? like

echo "Test2" | mail -s "testing2" -smtp smtp.domain.com me@my.domain

thus bypassing the DNS attempts.

I don't want to make this a permanent smart host cos this is a laptop
and I wanna keep it with the fallback host config.

Thanx

Roger

  Réponse avec citation
 
Page generated in 0,04893 seconds with 9 queries