|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
If the Postfix server has "allow_percent_hack = yes" in main.cf, then you can probably use: echo "Test2" | mail -s "testing2" me%my.domain@smtp.domain.com Another possibility, for you only, is to add a line in the "transport" file: me@my.domain smtp:[smtp.domain.com] -- Greg spacemancw wrote: > 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 > |
|
![]() |
| Outils de la discussion | |
|
|