> Rene Bartsch wrote:
>> Hi,
>> I'm running the combination of Postfix, Postfix-GLD (Greylisting) and 
>> DBMail(MDA) as a
stand-alone
>> Internet host on a Ubuntu-9.04 system. The file 'sql-recipients.cf' provides 
>> the MySQL access
information for the list of mail-aliases in DBMail and 'sql-domains.cf' 
provides the list of
virtual domains extracted from the mail-aliases.
> According to your config below, you are trying to use local as virtual. Don't 
> do this.

According to http://www.dbmail.org/dokuwiki/doku.php/setup_postfix I shall do 
this.

The configuration of the DBmail-Wiki allows me to send mail, but I can't 
receive mail (remote
SMTP-client receives the error message "Relay access denied (in reply to RCPT 
TO command)" by
postfix).

postconf -n:

--------------------------------- snip 
--------------------------------------------------------

append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
local_recipient_maps = mysql:/etc/postfix/sql-virtual_mailbox_maps.cf 
mail_owner = postfix
mailbox_transport = dbmail-lmtp:127.0.0.1:24
mydomain = <mydomain>
myhostname = www.<mydomain>
mynetworks = 10.214.224.0/24 10.214.234.0/24 127.0.0.0/8
myorigin = $mydomain
readme_directory = no
recipient_delimiter = +
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)

--------------------------------- snap 
--------------------------------------------------------




If I use virtual as you proposed, remote clients can send mail to postfix, but 
postfix doesn't
relay mail from local (loopback or private network) users to the internet.

(Message not sent. Server replied:
   Action not performed: mailbox not available
   550 5.1.1 <postfix-users@postfix.org>: Recipient address rejected: User 
unknown in virtual
mailbox table


postconf -n:

--------------------------------- snip 
--------------------------------------------------------

append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
mail_owner = postfix
mydomain = <mydomain>
myhostname = www.<mydomain>
mynetworks = 10.214.224.0/24 10.214.234.0/24 127.0.0.0/8
myorigin = $mydomain
readme_directory = no
recipient_delimiter = +
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
virtual_mailbox_domains = mysql:/etc/postfix/sql-virtual_mailbox_domains.cf 
virtual_mailbox_maps =
mysql:/etc/postfix/sql-virtual_mailbox_maps.cf virtual_transport = 
dbmail-lmtp:127.0.0.1:24

--------------------------------- snap 
--------------------------------------------------------



Best regards,

renne





Reply via email to