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

Notices


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

Rep: Reputation: 38
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 username@domain.com
Subject: Test Test
lskdjfl
.

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.

Thanks.
 
Old 07-18-2005, 04:16 AM   #2
TigerOC
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/main.cf 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.
 
  


Reply


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 05:24 PM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM
Postfix not sending mail, exits without error kevlarboxers Linux - Software 0 11-28-2004 02:09 PM
postfix : sending local mail without domain iainr Linux - Software 2 12-10-2003 03:05 AM
Sending mail to Postfix on LAN JimKyle Linux - Networking 0 02-11-2003 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:00 AM.

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