Virtual Postfix with Courier, MySQL, ClamAV, Saslauthd

Discussion in 'HOWTO-Related Questions' started by delacroix, Apr 25, 2007.

  1. delacroix

    delacroix New Member

    Hi,

    First of all, thanks for the great tutorial. It worked for a single domain name. I got trouble, if I add more domains to the MySQL table 'domains'. It bounces back my e-mail:
    Code:
      [email protected]
        SMTP error from remote mail server after RCPT TO:<[email protected]>:
        host mail.startpoker.hu [88.151.100.52]: 554 <[email protected]>:
        Relay access denied
    If I enter startpoker to main.cf (mydestiation):
    Code:
    The Postfix program
    <[email protected]>: unknown user: "test.user"
    main.cf
    Code:
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    append_dot_mydomain = no
    myhostname = ifilm.hu
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = localhost, localhost.localdomain, ifilm.hu, startpoker.hu
    relayhost = 
    mynetworks = 127.0.0.0/8
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    virtual_alias_domains = 
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_use_tls = yes
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_create_maildirsize = yes
    virtual_mailbox_extended = yes
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
    virtual_mailbox_limit_override = yes
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_overquota_bounce = yes
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    content_filter = amavis:[127.0.0.1]:10024
    receive_override_options = no_address_mappings
    home_mailbox = Maildir/
    mailbox_command = 
    The 2 error in my mail.log
    Code:
    Apr 25 20:18:31 ifilm postfix/smtpd[13228]: connect from smtp.enternet.hu[62.112.192.21]
    Apr 25 20:18:31 ifilm postfix/smtpd[13228]: NOQUEUE: reject: RCPT from smtp.enternet.hu[62.112.192.21]: 554 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<smtp.enternet.hu>
    Apr 25 20:18:31 ifilm postfix/smtpd[13228]: disconnect from smtp.enternet.hu[62.112.192.21]
    Code:
    Apr 25 20:41:49 ifilm postfix/smtpd[13717]: connect from smtp.enternet.hu[62.112.192.21]
    Apr 25 20:42:19 ifilm postfix/smtpd[13717]: 836F29800524F: client=smtp.enternet.hu[62.112.192.21]
    Apr 25 20:42:19 ifilm postfix/cleanup[13734]: 836F29800524F: message-id=<[email protected]>
    Apr 25 20:42:19 ifilm postfix/qmgr[13624]: 836F29800524F: from=<[email protected]>, size=875, nrcpt=1 (queue active)
    Apr 25 20:42:19 ifilm postfix/smtpd[13717]: disconnect from smtp.enternet.hu[62.112.192.21]
    Apr 25 20:42:22 ifilm dccproc[13737]: socket(UDP): Address family not supported by protocol
    Apr 25 20:42:22 ifilm postfix/smtpd[13738]: connect from localhost[127.0.0.1]
    Apr 25 20:42:22 ifilm postfix/smtpd[13738]: 9024998005250: client=localhost[127.0.0.1]
    Apr 25 20:42:22 ifilm postfix/cleanup[13734]: 9024998005250: message-id=<[email protected]>
    Apr 25 20:42:22 ifilm postfix/qmgr[13624]: 9024998005250: from=<[email protected]>, size=1315, nrcpt=1 (queue active)
    Apr 25 20:42:22 ifilm postfix/smtpd[13738]: disconnect from localhost[127.0.0.1]
    Apr 25 20:42:22 ifilm amavis[9430]: (09430-06) Passed, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, Hits: 2.61
    Apr 25 20:42:22 ifilm postfix/smtp[13735]: 836F29800524F: to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=13, status=sent (250 2.6.0 Ok, id=09430-06, from MTA: 250 Ok: queued as 9024998005250)
    Apr 25 20:42:22 ifilm postfix/qmgr[13624]: 836F29800524F: removed
    Apr 25 20:42:22 ifilm postfix/local[13740]: 9024998005250: to=<[email protected]>, relay=local, delay=0, status=bounced (unknown user: "test.user")
    Apr 25 20:42:22 ifilm postfix/cleanup[13734]: 9D3C19800524F: message-id=<[email protected]>
    Apr 25 20:42:22 ifilm postfix/qmgr[13624]: 9D3C19800524F: from=<>, size=2905, nrcpt=1 (queue active)
    Apr 25 20:42:22 ifilm postfix/qmgr[13624]: 9024998005250: removed
    Apr 25 20:42:22 ifilm postfix/smtp[13742]: 9D3C19800524F: to=<[email protected]>, relay=avgw.enternet.hu[62.112.192.40], delay=0, status=sent (250 OK id=1HgmTY-0009Vq-DM)
    Apr 25 20:42:22 ifilm postfix/qmgr[13624]: 9D3C19800524F: removed
    
    Thank you for your help in advance.

    For @ifilm.hu it works great. I found some information that the problem is mail.ifilm.hu = mail.startpoker.hu
    The another solution is:
    But still cant get it to work.
     
    Last edited: Apr 26, 2007
  2. falko

    falko Super Moderator ISPConfig Developer

    Is startpoker.hu in the domains table?
    BTW, you must not list a domain in mydestination in /etc/postfix/main.cf if it is already in the domains table (and vice versa).
     

Share This Page