Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail With Redhat

Status
Not open for further replies.

netwalker1

Programmer
Feb 5, 2000
1,241
EG
Dear All :
I need to send an email from my Linux Box using a remote SMTP Server ...
By Default the system is using its SMTO Server , but I need to change this behavior to use another Remote Server ..
Any Suggestions ?

Mohamed Farid
[green]Know Me No Pain , No Me Know Pain !!![/green]
 
First, change your signature to something far less annoying.

Second, configure the remote SMTP server to allow relaying from your server's IP. No authentication required.

D.E.R. Management - IT Project Management Consulting
 
The behavior I am seeing is really strange ,,
when I used the verbos mode mail -v
I can see that my mail client is trying to connect to its localhost 1st ( 127.0.0.1 ) then it goes to the remote SMTP Server ..
I need to start from the secind step and the client should 1st contact the Remote SMTP , and never to contact its local IP !

About my Signature , I will change it soon ..

Mohamed Farid
[green]Know Me No Pain , No Me Know Pain !!![/green]
 
To my knowledge, the 'mail' command only works on localhost/127.0.0.1 since it writes/reads directly from local files.

You need to use another POP3 or IMAP compliant mail client that can be configured to send via external host. Try "elm", "mutt", and GUI email in Mozilla, Netscape, Firefox.

D.E.R. Management - IT Project Management Consulting
 
this is from the IBM cmmands library:


mail, Mail, or mailx Command

The mail command operates on two types of mailboxes, the system mailbox and the personal mailbox.

sendmail Command

Routes mail for local or network delivery.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top