Try
smtpd_sender_restrictions = hash:/etc/postfix/access, 
reject_unknown_sender_domain
or
smtpd_sender_restrictions = hash:/etc/postfix/access, permit

in your main.cf*
**
*

Tim Wilson wrote:

>On 1/13/04 11:51 PM, "Joel Schneider" <joel at joelschneider.net> wrote:
>
>  
>
>>On Tue, Jan 13, 2004 at 10:41:49PM -0600, Tim Wilson wrote:
>>    
>>
>>>I'm having a terrible time getting postfix-style virtual domains working on
>>>my server. I'm using Postfix on a Debian box. I've had sendmail-style
>>>virtual domains working in the past, but I thought I would try something
>>>different this time.
>>>      
>>>
>>Are you using the postmap(1) command to create the virtual lookup table,
>>as mentioned in the virtual(5) man page?
>>    
>>
>
>Yep, I've done that. Let me include some more details. I'm going to munge
>some email addresses here.
>
>My regular domain is qwerk.org and littlecreektrees.com is the one I'd like
>to virtual host.
>
>  
>
>>o here's a sample domain in my /etc/postfix/virtual file.  the catchall
>>is the last entry here and is a null user with the domain on the RHS.
>>    
>>
>
>My /etc/postfix/virtual contains:
>
>littlecreektrees.com                    this-text-is-ignored
>postmasxyz at littlecreektrees.com         postmaster
>salxyz at littlecreektrees.com              kdwilxyz at evertek.net
>kxyz at littlecreektrees.com                kdwilxyz at evertek.net
>marxyz at littlecreektrees.com             kdwilxyz at evertek.net
>timxyz at littlecreektrees.com                wilson at visi.com
>
>Other notable entries in main.cf include:
>
>relay_domains = $mydestination, littlecreektrees.com
>relayhost = $mydomain
>virtual_alias_maps = hash:/etc/postfix/virtual
>virtual_alias_domains = littlecreektrees.com
>
>When I try to send email to timxyz at littlecreektrees.com from my work account
>(tim_wilxyz at hopkins.k12.mn.us) I get the following in mail.log:
>
>Jan 13 23:45:49 beethoven postfix/smtpd[4395]: connect from
>s9-221.hopkins.k12.mn.us[198.174.221.9]
>Jan 13 23:45:49 beethoven postfix/smtpd[4395]: 6477A7CA5:
>client=s9-221.hopkins.k12.mn.us[198.174.221.9]
>Jan 13 23:45:49 beethoven postfix/cleanup[4396]: 6477A7CA5:
>message-id=<BC2A3445.F05%tim_wilxyz at hopkins.k12.mn.us>
>Jan 13 23:45:49 beethoven postfix/nqmgr[4386]: 6477A7CA5:
>from=<tim_wilxyz at hopkins.k12.mn.us>, size=878, nrcpt=1 (queue active)
>Jan 13 23:45:49 beethoven postfix/smtpd[4395]: disconnect from
>s9-221.hopkins.k12.mn.us[198.174.221.9]
>Jan 13 23:46:52 beethoven postfix/smtp[4388]: connect to
>qwerk.org[66.41.131.19]: Connection timed out (port 25)
>Jan 13 23:46:52 beethoven postfix/smtp[4388]: 0F5737EC3:
>to=<timxyz at littlecreektrees.com>, relay=none, delay=378, status=deferred
>(connect to qwerk.org[66.41.131.19]: Connection timed out)
>Jan 13 23:46:52 beethoven postfix/smtp[4389]: connect to
>qwerk.org[66.41.131.19]: Connection timed out (port 25)
>Jan 13 23:46:52 beethoven postfix/smtp[4389]: 0998B7EC0:
>to=<timxyz at littlecreektrees.com>, relay=none, delay=4437, status=deferred
>(connect to qwerk.org[66.41.131.19]: Connection timed out)
>
>I'm not sure why the connection is timing out at the end there.
>
>Some instructions I read said that you shouldn't put the virtual domains in
>the relay_domains directive if you're using postfix-style virtual domains.
>For example, here's a quote from a "virtual" man page I found:
>
>#        Do  not  specify virtual alias domain names in the main.cf
>#        mydestination or relay_domains configuration parameters.
>
>When I take littlecreektrees.com out of that setting I get:
>
>Jan 13 23:56:04 beethoven postfix/smtpd[4543]: connect from
>s9-221.hopkins.k12.mn.us[198.174.221.9]
>Jan 13 23:56:04 beethoven postfix/smtpd[4543]: EF5177EBE:
>client=s9-221.hopkins.k12.mn.us[198.174.221.9]
>Jan 13 23:56:04 beethoven postfix/smtpd[4543]: reject: RCPT from
>s9-221.hopkins.k12.mn.us[198.174.221.9]: 554 <timxyz at littlecreektrees.com>:
>Recipient address rejected: Relay access denied;
>from=<tim_wilxyz at hopkins.k12.mn.us> to=<timxyz at littlecreektrees.com>
>Jan 13 23:56:15 beethoven postfix/smtpd[4543]: disconnect from
>s9-221.hopkins.k12.mn.us[198.174.221.9]
>
>So now it's rejecting relaying to my visi.com address.
>
>Any ideas?
>
>-Tim
>
>  
>


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list