PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > mailing.postfix.users > Specify SMTP in command line mail
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Specify SMTP in command line mail

Réponse
 
LinkBack Outils de la discussion
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
Vieux 02/03/2006, 23h01   #2
Greg Hackney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Specify SMTP in command line mail


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
>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h19.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07076 seconds with 10 queries