[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8879
  • Last Modified:

Ubuntu - Mailx config

OS: Ubuntu 6.06

I need to change the SMTP server name/ip that mailx uses to send email through?

Instead of sending mail via our ISP I want to change it to go through our exchange server. If its local, it then doesn't have to leave the building.
0
virtualworks
Asked:
virtualworks
  • 4
  • 4
1 Solution
 
ridCommented:
I suppose someone told mailx what SMTP server to use during initial setup. This must be possible to edit. At what point do you experience a problem?
/RID
0
 
slyongCommented:
There are a few ways to point mailx to an smtp server.  So, it really depends on "how" it was done.  For a start, I would recommend you to try to check:

$ echo $smtp
$ cat ~/.mailrc

and see if you can get a clue there.
0
 
virtualworksAuthor Commented:
I didn't set the machine up - I have inherited it. I also have no idea how it was done.

the echo $smtp command returned a blank line.

the cat `/.mailrc returned a new line with a >

I was logged in as root when I ran the commands.

Any ideas?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
slyongCommented:
Could you check if you have /etc/mail/mailx.rc or /etc/mail/Mail.rc and if you have them what are their content?
0
 
virtualworksAuthor Commented:
I have /etc

but I do not have /etc/mail folder
0
 
slyongCommented:
Try locating the files then:

# locate mailx.rc
# locate Mail.rc
0
 
virtualworksAuthor Commented:
location was /etc/mail.rc

contents are as follows:

set ask askcc append dot save crt
ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via Delivered-To
0
 
slyongCommented:
Ubuntu uses Postfix as the default MTA.  Could you check /etc/postfix/main.cf if there is a relayhost entry in it?
0
 
virtualworksAuthor Commented:
And that's exactly where the old setting was!

Thanks

Brett
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now