sgsweb wrote: > Thanks for the reply. Please see the answers to the questions below > starting with *SGS::.* > > sgs. > > mouss said the following on 10/11/2008 6:25 PM: >> sgsweb a écrit : >> >>> I have a configuration of the postfix server using MySQL. I have the >>> postfix_virtual entry where the destination includes several e-mails, >>> some of which are outside of my domains. >>> >> >> we don't really know what you mean by postfix_virtual. use the names of >> the parameters that are accepted by postfix. for example >> virtual_alias_maps. >> > > *SGS:: Yes. This is virtual_alias_maps. Since I use the database > configuration, the table is called postfix_virtual as described in one > of the "How tos" on postfix.org.* >>> E.g., >>> >>> email='[EMAIL PROTECTED]'; >>> destination='[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], >>> [EMAIL PROTECTED], [EMAIL PROTECTED]' >>> >>> As you can see, my destination e-mail addresses encompasses several >>> domains. I like to be able to have anyone relay e-mail to these >>> addresses if they are sending to '[EMAIL PROTECTED]'. >>> >> >> >> if companyname.com is one of your domains, then relay is allowed by >> default. if that doesn't work for you, please show >> - output of 'postconf -n' >> - logs showing the relay access denied >> >> > *SGS:: This is exactly what I thought also. companyname.com is my > domain that I host on my e-mail server. Now, if I am sending the > e-mail from companyname.com, then the e-mail goes to everyone. If I > send it from say yahoo.com, then I get the relay denied error. > > That is, if the sender e-mail address is [EMAIL PROTECTED], then it > gets relayed to all of the alias e-mail addresses. If the sender > e-mail address is [EMAIL PROTECTED], then it gets a relay error. > > I am including my output from postconf -n and log message. > > POSTCONF -N > ------------------------------ > > * [...] > *local_recipient_maps = $alias_maps $virtual_mailbox_maps > unix:passwd.byname > * Please don't change this. local users are local, virtual are virtual. > * > mydestination = $myhostname > mydomain = websulting.com > myhostname = mail01.websulting.com > > * [...] > *smtpd_recipient_restrictions = > permit_mynetworks,permit_sasl_authenticated, > check_recipient_access > mysql:/etc/postfix/mysql/mysql-recipient.cf,reject_unauth_destination,permit > * Please make sure this map would return permit_auth_destination since it comes before reject_unauth_destination. It is highly preferred to list reject_unauth_destination directly after permit_(sasl_authenticated|mynetworks).
> * > virtual_alias_maps = mysql:/etc/postfix/mysql/mysql-virtual.cf > virtual_mailbox_domains = > mysql:/etc/postfix/mysql/mysql-virtual-domains.cf > virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql-virtual-maps.cf > virtual_transport = maildrop > * > *------------------------------ END OF POSTCONF -N > > -----------------------------RELAY ERROR LOG > Oct 11 13:49:02 mail01 postfix/smtpd[4202]: NOQUEUE: reject: RCPT from > web33504.mail.mud.yahoo.com[68.142.206.153]: 554 > <[EMAIL PROTECTED]>: Relay access denied; from=<[EMAIL PROTECTED]> > to=<[EMAIL PROTECTED]> proto=SMTP helo=<web33504.mail.mud.yahoo.com> > > * What is the result of the following? 'postmap -q [EMAIL PROTECTED] mysql:/etc/postfix/mysql-virtual-domains.cf' 'postmap -q [EMAIL PROTECTED] mysql:/etc/postfix/mysql-virtual-maps.cf' If either return no results, then they do not exist in the lookup and will be denied. Also, make sure your mydestination is not listed in virtual_mailbox_domains lookup. Brian