LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Postfix (http://www.linuxquestions.org/questions/linux-newbie-8/postfix-804954/)

wademac 04-29-2010 07:22 AM

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.

AlucardZero 04-29-2010 07:39 AM

Is the webapp on a different server? Add its IP to postfix's mynetworks

wademac 04-29-2010 08:51 AM

Quote:

Originally Posted by AlucardZero (Post 3951750)
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 ?

AlucardZero 04-29-2010 09:12 AM

24.24.222.50/32 to allow only 24.24.222.50

http://en.wikipedia.org/wiki/Classle...ix_aggregation

wademac 04-30-2010 09:43 AM

thank you so much that worked great.


All times are GMT -5. The time now is 08:57 PM.