LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2010, 07:22 AM   #1
wademac
Member
 
Registered: Apr 2008
Posts: 43

Rep: Reputation: 19
Postfix


I have a postfix on a server and I have a webserver with a application that needs a stmp server to send out emails.

When I run a test from the webapp to the postfix server trying to send a email to a outside address I got:

A test email has not been successfully sent to the email address me@gmail.com: 572 <me@gmail.com>: Relay access denied

If I use a email address based on the postfix server it will send the email to that localize address

I need to have this postfix server configured to relay mail to outside addressed and anyone give me instruction on the configuration of the server to do this.
 
Old 04-29-2010, 07:39 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Is the webapp on a different server? Add its IP to postfix's mynetworks
 
Old 04-29-2010, 08:51 AM   #3
wademac
Member
 
Registered: Apr 2008
Posts: 43

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by AlucardZero View Post
Is the webapp on a different server? Add its IP to postfix's mynetworks
You would place the ip of the server in the section marked as

mynetworks = 168.100.189.0/28, 127.0.0.0/8

How would you write the CIDR for the ip addres I am not sure how to add my servers ip to this.

for example if the ip of the webapp server was 24.24.222.50 ?
 
Old 04-29-2010, 09:12 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
24.24.222.50/32 to allow only 24.24.222.50

http://en.wikipedia.org/wiki/Classle...ix_aggregation
 
1 members found this post helpful.
Old 04-30-2010, 09:43 AM   #5
wademac
Member
 
Registered: Apr 2008
Posts: 43

Original Poster
Rep: Reputation: 19
thank you so much that worked great.
 
  


Reply

Tags
mail, postfix, relay



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 to make postfix send email to another postfix in local network (LAN)? h4k33m Linux - Server 9 06-04-2015 04:33 PM
Removed Citadel and installed Postfix, Postfix acting funny?? kayasaman Linux - Server 49 10-07-2008 08:06 PM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 12:21 PM
Postfix error: /usr/lib/postfix/smtpd pid 7529 exit status 1 Chiragrs Linux - Networking 7 05-16-2008 12:42 AM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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