Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-18-2005, 02:14 AM   #1
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 30
Sending mail outside my LAN using Postfix

I have Postfix installed. I am doing some simple tests. I am trying to send an email from my account on a box from within my LAN. I am doing like this:

# mail
Subject: Test Test

I then hit enter. Right after I do this, I receive an email in my inbox that says:

I'm sorry to have to inform you that your message could not be
be delivered to one or more recipients. It's attached below.

How do I fix postfix where it can send email to outbound receivers outside of my LAN? It works inter-box when I send it say root to username.

Old 07-18-2005, 05:16 AM   #2
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Open /etc/postfix/ with an editor and edit the line;

relayhost and enter relayhost = [outmail_address_of isp_host]

This is the address that you use to send mail from your mail client which will be in mail settings and provided by your isp. The address is enclosed in the [ ] brackets as above.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you test POSTFIX for sending mail out? LneonGREEN Linux - Software 2 11-20-2008 06:24 PM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 12:16 PM
Postfix not sending mail, exits without error kevlarboxers Linux - Software 0 11-28-2004 03:09 PM
postfix : sending local mail without domain iainr Linux - Software 2 12-10-2003 04:05 AM
Sending mail to Postfix on LAN JimKyle Linux - Networking 0 02-11-2003 05:12 PM

All times are GMT -5. The time now is 07:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration