Oh, wait ok I see what the problem is.  I had mydomain and relay_domains set 
wrong.  Now it works fine, except the recipient shows up like:

To: undisclosed-recipients:;

Thoughts?

-Geoff

________________________________________
From: owner-postfix-us...@postfix.org [owner-postfix-us...@postfix.org] On 
Behalf Of GeoffSweet [geoff.sw...@wemade.com]
Sent: Monday, June 08, 2009 4:30 PM
To: postfix-users@postfix.org
Subject: Difficulty in making a SMTP relay with Postfix

Greetings all,
  Please pardon the ignorance here as I am pretty new with Postfix.  Trying to 
ween myself away from Qmail.

 I have a server that needs to act as both an inbound SMTP server and as a 
smarthost for outbound mail.  We have domain keys that we need to manage and it 
seems the easiest way is to let a server act as the gate-keeper for this.

So I have centos 5.3 setup and postfix installed and working seemingly ok.  I 
have spent quite a day reading on how to do relaying, and I think I have it but 
I am still getting Relay Denied errors.

My initial test right now is that I am just relaying SMTP messages into our 
parent companies email servers which I know accept messages.  However when I 
try to send a message through my new Postfix relay I get denied.  For now I am 
just trying to get it to work with our known good servers and email accounts.  
Eventually I will point this to our new ones.  But for now I just want to get 
this basic functionality to work.

Some parameters for you:

$ postconf mail_version
mail_version = 2.3.3


/etc/postfix/main.cf:
# local settings. Remember any domain you want treated as virtual
# can not be listed in either relay_domains or mydestination.
myhostname = mail1.wemadeusa.com
mydomain = wemadeusa.com
myorigin = $myhostname
inet_interfaces = all
mydestination =
mynetworks_style = subnet
mynetworks = 127.0.0.0/8
local_recipient_maps =
local_transport = error:local mail delivery is disabled
virtual_alias_maps = hash:/etc/postfix/virtual
relay_domains = wemadeusa.com
parent_domain_matches_subdomains = debug_peer_list smtpd_access_maps
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination
relay_recipient_maps = hash:/etc/postfix/relay_recipients
transport_maps = hash:/etc/postfix/transport
message_size_limit= 112400000
smtpd_use_tls = no


/etc/postfix/relay_recipients:
#
# Postfix-compatible relay_recipients lookup table for $domain
#
geoff.sw...@wemade.com                  OK

/etc/postfix/transport:
wemade.com      smtp:pop.wemade.com

/etc/postfix/virtual:
postmaster      postmas...@wemade.com
abuse           ab...@wemade.com
root            r...@localhost



I'm totally lost on why this isn't working and would greatly appreciate any 
insight anyone has.

Thanks!
-Geoff Sweet

Reply via email to