On Sunday 28 August 2011 11:57:49 Ted To wrote:
> On 08/28/2011 12:39 PM, Sahil Tandon wrote:
> > On Sun, 2011-08-28 at 08:43:03 -0400, Ted To wrote:
> >> I have a postfix server on a VPS and I have a domain
> >> (domain.name) that is pointing to my home ip address but I've
> >> directed mail towards VPS's IP address.  The
> >> email.addr...@domain.name has been aliased to this email
> >> address (rainexpec...@theo.to) but mail sent externally to
> >> email.addr...@domain.name is getting a "Relay access denied"

This means that the recipient address was rejected by 
reject_unauth_destination in smtpd_recipient_restrictions. If you're 
the MX for that recipient domain and want the address to be accepted, 
the domain must be defined in any one of the several address class 
definitions, and the address must be valid in the recipient maps for 
that class.

http://www.postfix.org/ADDRESS_CLASS_README.html#classes

(Before reading on: I think the above is what you needed. The 
following is for completeness, but probably not relevant to your 
particular situation.)

If you had intended for it to be relayed to a domain hosted elsewhere, 
the client must be allowed to relay. If it's a static IP address under 
your control, listing it in mynetworks might be appropriate:

http://www.postfix.org/BASIC_CONFIGURATION_README.html#relay_from

If not, you should set up SASL AUTH and configure your client 
accordingly:

http://www.postfix.org/SASL_README.html#server_sasl

> >> error. If I send mail to email.addr...@domain.name myself
> >> (through my VPS's postfix server), it gets through.  What
> >> configuration setting do I need to add/change to get this to
> >> work?
> > 
> > Show logs and the output of 'postconf -n' on the machine with a
> > problem.
> 
> Sure, the relevant portion of the log file is:
> http://pastebin.com/FCFFeLBw
> and the output from 'postconf -n' is:
> http://pastebin.com/tQyvDcP9

1. http://www.postfix.org/DEBUG_README.html#mail -- we prefer to see
   that posted here, inline.
2. No, the relevant portion of the log file would include the ENTIRE
   Postfix logging for a single message which shows the issue. A grep
   excerpt is usually not enough.
3. Munging your domain names can make it impossible to solve mail
   routing problems. And if you must mung, do not use a real domain as
   an example, use example.{com,net,org,...}.
4. I have a personal limit of one pastebin URL per problem. If you are
   seeking free help on the Internet, make it easy for the helpers.
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

Reply via email to