Problem with Postfix

Discussion in 'Server Operation' started by spr0, Mar 6, 2007.

  1. spr0

    spr0 New Member

    hi to all,

    im trying used this howto Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV) with by FALKO ,everything is ok but onething i noticed in my maillog is that

    Mar 6 16:46:08 support postfix/qmgr[1281]: 89B02E14B0: removed
    Mar 6 16:46:08 support postfix/smtp[1456]: C01EFE14AF: to=<[email protected]>, relay=none, delay=0, status=bounced (mail for mail.example.com loops back to myself)
    Mar 6 16:46:08 support postfix/qmgr[1281]: C01EFE14AF: removed

    what the proble please help.

    PS:this howto is great
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Please add mail.example.com to the mydestination line in /etc/postfix/main.cf and restart Postfix.
     
  3. spr0

    spr0 New Member

    hi sir falko thank for quickly reply

    here's my config in my main.cf,can review/check if theres a something wrong or miss

    vi /etc/postfic/main.cf

    # See /usr/share/postfix/main.cf.dist for a commented, more complete version

    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no

    # appending .domain is the MUA's job.
    append_dot_mydomain = no

    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h

    myhostname = mail.example.com
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = mail.example.com, localhost.localdomain, localhost
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    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


    still got the error

    Mar 11 08:55:37 support postfix/qmgr[1280]: 330FFE14AF: from=<>, size=3535, nrcpt=1 (queue active)
    Mar 11 08:55:37 support postfix/smtp[1464]: 330FFE14AF: to=<[email protected]>, relay=none, delay=0, status=bounced (mail for mail.example.com loops back to myself)
    Mar 11 08:55:37 support postfix/qmgr[1280]: 330FFE14AF: removed

    pls help.
    thank you very much

    mark
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Looks ok. Did you restart Postfix?
     
  5. spr0

    spr0 New Member

    hi sir falko thank you for your reply

    i already restart Postfix and my server still got the error

    Mar 13 08:55:37 support postfix/qmgr[1280]: 330FFE14AF: from=<>, size=3535, nrcpt=1 (queue active)
    Mar 13 08:55:37 support postfix/smtp[1464]: 330FFE14AF: to=<[email protected]>, relay=none, delay=0, status=bounced (mail for mail.example.com loops back to myself)
    Mar 13 08:55:37 support postfix/qmgr[1280]: 330FFE14AF: removed

    what should be the problem huhuhuhuh pls.pls. help

    thank you

    mark
     
  6. nnunez

    nnunez New Member

    same problem... :(

    http://www.howtoforge.com/virtual_postfix_mysql_quota_courier

    Virtual Users And Domains With Postfix, Courier And MySQL + SMTP-AUTH + Quota.... only

    webmail:/etc/postfix# cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    172.16.10.44 webmail.aiep.cl webmail

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    webmail:/etc/postfix# cat /var/spool/postfix/etc/
    hosts localtime nsswitch.conf resolv.conf services
    webmail:/etc/postfix# cat /var/spool/postfix/etc/hosts
    127.0.0.1 localhost.localdomain localhost
    172.16.10.44 webmail.aiep.cl webmail

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    webmail:/etc/postfix#
    webmail:/etc/postfix# cat /etc/hostname
    webmail
    webmail:/etc/postfix# cat main.cf
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version

    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no

    # appending .domain is the MUA's job.
    append_dot_mydomain = no

    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h

    myhostname = webmail
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = webmail.aiep.cl, localhost, localhost.localdomain
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command = procmail -a "$EXTENSION"
    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

    webmail:/etc/postfix# mail [email protected]
    Subject: test
    test
    .
    Cc:
    webmail:/etc/postfix# tail -f /var/log/mail.log
    Mar 13 11:23:27 webmail postfix/qmgr[17534]: 86E13370028: removed
    Mar 13 11:48:33 webmail postfix/pickup[17533]: B0FD7370027: uid=0 from=<root>
    Mar 13 11:48:33 webmail postfix/cleanup[17574]: B0FD7370027: message-id=<20070313154833.B0FD7370027@webmail>
    Mar 13 11:48:33 webmail postfix/qmgr[17534]: B0FD7370027: from=<[email protected]>, size=276, nrcpt=1 (queue active)
    Mar 13 11:48:35 webmail postfix/smtp[17581]: B0FD7370027: to=<[email protected]>, relay=none, delay=2, status=bounced (mail for webmail.aiep.cl loops back to myself)
    Mar 13 11:48:35 webmail postfix/cleanup[17574]: D694C370028: message-id=<20070313154835.D694C370028@webmail>
    Mar 13 11:48:35 webmail postfix/qmgr[17534]: D694C370028: from=<>, size=1876, nrcpt=1 (queue active)
    Mar 13 11:48:35 webmail postfix/qmgr[17534]: B0FD7370027: removed
    Mar 13 11:48:35 webmail postfix/local[17583]: D694C370028: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0, status=sent (delivered to command: procmail -a "$EXTENSION")
    Mar 13 11:48:35 webmail postfix/qmgr[17534]: D694C370028: removed

    webmail:/etc/postfix#
    webmail:/etc/postfix# mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 181 to server version: 4.0.24_Debian-10sarge2-log

    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

    mysql> use mail;
    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A

    Database changed
    mysql> SELECT * FROM `domains` LIMIT 0 , 30;
    +---------+
    | domain |
    +---------+
    | aiep.cl |
    +---------+
    1 row in set (0.00 sec)

    mysql> SELECT * FROM `forwardings` LIMIT 0 , 30;
    +--------------+----------------+
    | source | destination |
    +--------------+----------------+
    | [email protected] | [email protected] |
    +--------------+----------------+
    1 row in set (0.00 sec)

    mysql> SELECT * FROM `transport` LIMIT 0 , 30;
    +---------+----------------------+
    | domain | transport |
    +---------+----------------------+
    | aiep.cl | smtp:webmail.aiep.cl |
    +---------+----------------------+
    1 row in set (0.00 sec)

    mysql> SELECT * FROM `users` LIMIT 0 , 30;
    +----------------+---------------+----------+
    | email | password | quota |
    +----------------+---------------+----------+
    | [email protected] | mPPp2tuNoqld6 | 10485760 |
    +----------------+---------------+----------+
    1 row in set (0.00 sec)

    mysql> quit;
    Bye
    webmail:/etc/postfix#
    webmail:/etc/postfix# cat mysql-virtual_domains.cf
    user = mail_admin
    password = casitoss
    dbname = mail
    table = domains
    select_field = 'virtual'
    where_field = domain
    hosts = 127.0.0.1
    webmail:/etc/postfix#
     
    Last edited: Mar 13, 2007
  7. falko

    falko Super Moderator ISPConfig Developer

    Ok, then remove mail.example.com from the mydestination line in your main.cf and add it to the domains table. Then restart Postfix.
     
  8. spr0

    spr0 New Member

    hi sir falko thank you again for your reply and patience ,i remove in the mydestionation and add to domains tables still got the error huihuhuhuh,please help me.


    Mar 15 09:55:37 support postfix/qmgr[1280]: 330FFE14AF: from=<>, size=3535, nrcpt=1 (queue active)
    Mar 15 09:55:37 support postfix/smtp[1464]: 330FFE14AF: to=<[email protected]>, relay=none, delay=0, status=bounced (mail for mail.example.com loops back to myself)
    Mar 15 09:55:37 support postfix/qmgr[1280]: 330FFE14AF: removed

    please help :(

    -mark-
     
  9. falko

    falko Super Moderator ISPConfig Developer

    What's in your domains table now, and what in the mydestination line?
     
  10. spr0

    spr0 New Member

    hi sir falko,thank you for you reply again

    here's my domains table

    +-------------+
    | domain |
    +-------------+
    | mail.example.com |
    +-------------+
    1 row in set (0.02 sec)

    and mydestination content

    mydestination = localhost, localhost.localdomain

    what do you think sir falko the problem?

    please help meh sir

    thank you in advance

    -mark-
     
  11. falko

    falko Super Moderator ISPConfig Developer

    What's in your /etc/hosts file?
     
  12. spr0

    spr0 New Member

    hi sir falko thank you again for your reply and patience

    here' the output of my /ets/hosts

    127.0.0.1 localhost.localdomain localhost
    192.168.57.100 mail.example.com mail

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

    thank you sir .please help

    TIA
    -mark-
     
  13. falko

    falko Super Moderator ISPConfig Developer

    Is 192.168.57.100 your system's IP address, or does it belong to another system?
     
  14. spr0

    spr0 New Member

    hi sir falko tnx again.

    yes 192.168.57.100 is my system's IP address, what shoukld be the problem.

    thank you sir falko.


    TIA
    -mark-
     
  15. falko

    falko Super Moderator ISPConfig Developer

    Hm...
    Can you post the output of
    Code:
    postconf -n
    ?
    Do you have working nameservers in /etc/resolv.conf?
     
  16. spr0

    spr0 New Member

    hi sir falko thank you very much ,yes my nameserver is working
    here's my the out put of my postconf -n


    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    content_filter = amavis:[127.0.0.1]:10024
    inet_interfaces = all
    mailbox_size_limit = 0
    mydestination = $myhostname, localhost,localdomain
    myhostname = mail.example.com
    mynetworks = 127.0.0.0/8
    myorigin = /etc/mailname
    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
    receive_override_options = no_address_mappings
    recipient_delimiter = +
    relayhost =
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_alias_domains = $virtual_alias_maps
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_create_maildirsize = yes
    virtual_gid_maps = static:5000
    virtual_mailbox_base = /home/vmail
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
    virtual_mailbox_limit_override = yes
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_overquota_bounce = yes
    virtual_uid_maps = static:5000


    hope you can help meh sir falko i need solve this problem immediately sir falko thank you very much again.

    TIA
    -mark-
     
  17. nnunez

    nnunez New Member

    replace...

    mydestination = $myhostname, localhost,localdomain


    mydestination = $myhostname, localhost.localdomain


    Point... it's correct.
     
  18. spr0

    spr0 New Member

    hi sir thank you for your reply i changed wat you said but still got the error like this:

    Mar 28 10:55:44 mail postfix/smtpd[1483]: connect from localhost.localdomain[127.0.0.1]
    Mar 28 10:55:44 mail postfix/smtpd[1483]: EAFA9C948E: client=localhost.localdomain[127.0.0.1]
    Mar 28 10:55:45 mail postfix/cleanup[1474]: EAFA9C948E: message-id=<[email protected]>
    Mar 28 10:55:45 mail postfix/qmgr[1464]: EAFA9C948E: from=<[email protected]>, size=848, nrcpt=1 (queue active)
    Mar 28 10:55:45 mail amavis[1262]: (01262-01) Passed, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, Hits: 0.319
    Mar 28 10:55:45 mail postfix/smtp[1475]: 4804DC948D: to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=41, status=sent (250 2.6.0 Ok, id=01262-01, from MTA: 250 Ok: queued as EAFA9C948E)
    Mar 28 10:55:45 mail postfix/qmgr[1464]: 4804DC948D: removed
    Mar 28 10:55:45 mail postfix/smtpd[1483]: disconnect from localhost.localdomain[127.0.0.1]
    Mar 28 10:55:48 mail postfix/smtpd[1466]: disconnect from localhost.localdomain[127.0.0.1]
    Mar 28 10:55:51 mail postfix/smtp[1485]: EAFA9C948E: to=<[email protected]>, relay=none, delay=7, status=bounced (mail for mail.example.com loops back to myself)
    Mar 28 10:55:51 mail postfix/cleanup[1474]: B0228C948D: message-id=<[email protected]>
    Mar 28 10:55:51 mail postfix/qmgr[1464]: B0228C948D: from=<>, size=2574, nrcpt=1 (queue active)
    Mar 28 10:55:51 mail postfix/qmgr[1464]: EAFA9C948E: removed
    Mar 28 10:55:51 mail postfix/smtp[1485]: B0228C948D: to=<[email protected]>, relay=none, delay=0, status=bounced (mail for mail.example.com loops back to myself)
    Mar 28 10:55:51 mail postfix/qmgr[1464]: B0228C948D: removed



    what the problem please meh solve that issue,thank you in advanced

    TIA
    -mark-
     
  19. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/mailname?
    Please add mail.example.com to /etc/hosts.
     
  20. nnunez

    nnunez New Member

    post "transport" table...

    ...

    before...

    please leave blank... table "transport"

    postfix reload

    retry mail test.
     

Share This Page