SuSE 10.2 64bit and Mail

Discussion in 'Installation/Configuration' started by Elfchen, Jul 22, 2007.

  1. Elfchen

    Elfchen New Member

    Hi!

    When I create user in ISPconfig the user can't receive mails.

    Sending mail works well.

    I get the following error:

    Code:
    Jul 22 22:09:44 iamaserver pop3d: Connection, ip=[::ffff:1.2.3.4]
    Jul 22 22:09:44 iamaserver authdaemond: [COLOR="DarkRed"]failed to connect to mysql server (server=mysql.example.com, userid=admin): Unknown MySQL server host 'mysql.example.com' (1)[/COLOR]
    Jul 22 22:09:44 iamaserver pop3d: LOGIN FAILED, user=web26_123-superdomain.com, ip=[::ffff:1.2.3.4]
    Jul 22 22:09:44 iamaserver pop3d: authentication error: Input/output error
    Jul 22 22:09:44 iamaserver pop3d: Connection, ip=[::ffff:1.2.3.4]
    Jul 22 22:09:45 iamaserver authdaemond: failed to connect to mysql server (server=mysql.example.com, userid=admin): Unknown MySQL server host 'mysql.example.com' (1)
    Jul 22 22:09:45 iamaserver pop3d: LOGIN FAILED, [email protected], ip=[::ffff:1.2.3.4]
    Jul 22 22:09:45 iamaserver pop3d: authentication error: Input/output error
    
    This mysql.example.com is shown in /etc/authlib/authmysqlrc

    But I am sure that mysql.example.com will not work ...

    Code:
    MYSQL_SERVER           mysql.example.com
    MYSQL_USERNAME         admin
    MYSQL_PASSWORD         admin
    
    For working with mysql I should have a database called mail? Am I right? I don't have such a database.

    I searched the forum for answers but I found only one thread which seems to have the same problem but it ends only with "the problem was solved by commenting out a line in master.cf based on special SuSE settings" - nice - no word tells me which line ...

    I think it depends on Courier authentication but I never worked with Courier before - I used always Dovecot instead ... so a tip how to solve would be fine.

    When I want to send mail to the user:

    Code:
    Jul 22 22:19:16 iamaserver postfix/cleanup[29758]: 1A9791A7410: message-id=<[email protected]>
    Jul 22 22:19:16 iamaserver postfix/qmgr[26348]: 1A9791A7410: from=<[email protected]>, size=500, nrcpt=1 (queue active)
    Jul 22 22:19:16 iamaserver postfix/local[29760]: 1A9791A7410: to=[COLOR="DarkRed"]<[email protected]>[/COLOR], relay=local, delay=0.04, delays=0.03/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "business")
    Jul 22 22:19:16 iamaserver postfix/cleanup[29758]: 221CF1A7886: message-id=<[email protected]>
    Jul 22 22:19:16 iamaserver postfix/qmgr[26348]: 221CF1A7886: from=<>, size=2450, nrcpt=1 (queue active)
    Jul 22 22:19:16 iamaserver postfix/bounce[29761]: 1A9791A7410: sender non-delivery notification: 221CF1A7886
    Jul 22 22:19:16 iamaserver postfix/qmgr[26348]: 1A9791A7410: removed
    
    In virtusertable the entry exists:

    Code:
    [email protected]    web26_123-superdomain.com
    [email protected]    web26_123-superdomain.com
    [COLOR="DarkRed"][email protected][/COLOR]    web26_123-superdomain.com
    [email protected]    web26_123-superdomain.com
    [email protected]    web26_123-superdomain.com
    [email protected]    web26_123-superdomain.com
    [email protected]    web26_123-superdomain.com
    [email protected]    web26_123-superdomain.com
    

    In local domains 123-superdomain.com is shown, too.

    This is what ISPConfig log shows:

    Code:
    19.06.2007 - 19:08:00 => INFO - Signalfile Set: update
    19.06.2007 - 19:08:07 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
    19.06.2007 - 19:08:07 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
    19.06.2007 - 19:08:08 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: WARNING: could not postmap hash:/etc/postfix/virtusertable
    19.06.2007 - 19:08:08 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1231: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/V
    hosts_ispconfig.conf~
    19.06.2007 - 19:08:08 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix stop &> /dev/null
    19.06.2007 - 19:08:09 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix start &> /dev/null
    19.06.2007 - 19:08:09 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1892: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
    19.06.2007 - 19:08:11 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/proftpd restart &> /dev/null
    19.06.2007 - 21:11:18 => INFO - Signalfile Set: insert
    19.06.2007 - 21:11:22 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1059: cp -fr /root/ispconfig/isp/error_de /srv/www/web1/web/error
    19.06.2007 - 21:11:23 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1067: cp -fr /root/ispconfig/isp/standard_index.html_de /srv/www/web1/web/in
    dex.html
    19.06.2007 - 21:11:23 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1099: ln -s /srv/www/web1 /srv/www/www.anotherdomain.biz
    19.06.2007 - 21:11:23 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 94: setquota -g web1 10240 11264 0 0 -a &> /dev/null
    19.06.2007 - 21:11:23 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 95: setquota -T -g web1 604800 604800 -a &> /dev/null
    19.06.2007 - 21:11:23 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 116: Connected successfully
    19.06.2007 - 21:11:23 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 214: MySQL FLUSH PRIVILEGES
    19.06.2007 - 21:11:23 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
    19.06.2007 - 21:11:23 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtu
    sertable~
    19.06.2007 - 21:11:25 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: WARNING: could not postmap hash:/etc/postfix/virtusertable
    19.06.2007 - 21:11:25 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1231: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/V
    hosts_ispconfig.conf~
    19.06.2007 - 21:11:25 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2418: httpd -t  &> /dev/null
    19.06.2007 - 21:11:25 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2425: httpd syntax ok
    19.06.2007 - 21:11:26 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/apache2 reload &> /dev/null
    19.06.2007 - 21:11:27 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix stop &> /dev/null
    19.06.2007 - 21:11:31 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix start &> /dev/null
    
    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 localhost:929           *:*                     LISTEN      3297/famd
    tcp        0      0 *:mysql                 *:*                     LISTEN      9576/mysqld-max
    tcp        0      0 *:sunrpc                *:*                     LISTEN      3189/portmap
    tcp        0      0 *:ndmp                  *:*                     LISTEN      3232/perl
    tcp        0      0 *:hosts2-ns             *:*                     LISTEN      21777/ispconfig_htt
    tcp        0      0 *:ftp                   *:*                     LISTEN      32587/proftpd: (acc
    tcp        0      0 iamaserver.do:domain *:*                     LISTEN      22283/named
    tcp        0      0 localhost:domain        *:*                     LISTEN      22283/named
    tcp        0      0 *:smtp                  *:*                     LISTEN      25758/master
    tcp        0      0 localhost:953           *:*                     LISTEN      22283/named
    tcp        0      0 *:imaps                 *:*                     LISTEN      3159/couriertcpd
    tcp        0      0 *:pop3s                 *:*                     LISTEN      3180/couriertcpd
    tcp        0      0 *:pop3                  *:*                     LISTEN      3181/couriertcpd
    tcp        0      0 *:imap                  *:*                     LISTEN      3143/couriertcpd
    tcp        0      0 *:www-http              *:*                     LISTEN      21644/httpd2-prefor
    tcp        0      0 *:ssh                   *:*                     LISTEN      3053/sshd
    tcp        0      0 *:smtp                  *:*                     LISTEN      25758/master
    tcp        0      0 localhost:953           *:*                     LISTEN      22283/named
    tcp        0      0 *:https                 *:*                     LISTEN      21644/httpd2-prefor
    
    So ... confused again :) - would be nice to get help.

    Yours, Elfchen
     
    Last edited: Jul 24, 2007
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Your imap server is configuread totally wrong. Please reconfigure your imap server to authenticate against pam or shadow and not against mysql. Please have a look at the perfect setup guides on how to setup your server correctly.
     
  3. Elfchen

    Elfchen New Member

    There I've already searched. All I found in setup manual is:

    8 Courier-IMAP/Courier-POP3

    I want to use a POP3/IMAP daemon that has Maildir support. That's why I use Courier-IMAP and Courier-POP3.

    Code:
    yast2 -i courier-imap fam-server courier-authlib expect tcl
    
    Afterwards we add the system startup links and start POP3, IMAP, POP3s and IMAPs:

    Code:
    chkconfig --add fam
    chkconfig --add courier-authdaemon
    chkconfig --add courier-pop
    chkconfig --add courier-imap
    /etc/init.d/courier-pop start
    /etc/init.d/courier-imap start
    chkconfig --add courier-pop-ssl
    chkconfig --add courier-imap-ssl
    /etc/init.d/courier-pop-ssl start
    /etc/init.d/courier-imap-ssl start
    


    I can't find any additional information on authentication module ...
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Maybe you can reconfigure Courier with YaST?
    If not, is there any Courier file in /etc/sysconfig?
    What's the output of
    Code:
    updatedb
    locate courier
    ?
     
  5. Elfchen

    Elfchen New Member

    Code:
    # locate courier
    /etc/courier
    /etc/courier/imapd
    [COLOR="Red"][I]... needed to cut lines, otherwise post would be too long (extending 10.000 lines) ...[/I][/COLOR]
    /usr/share/texmf/fonts/vf/cg/courier/ccrrq.vf
    /usr/share/texmf/tex/latex/psnfss/courier.sty
    /usr/share/texmf/tex/latex/qfonts/qcourier.sty
    /var/run/authdaemon.courier-imap
    /var/run/couriersslcache
    
    Code:
    # ls /etc/sysconfig/
    SuSEfirewall2  backup      clock           fam       keyboard  mail      network   portmap    scpm      services    svnserve       ulimit
    apache2        bluetooth   console         hardware  language  mdadm     news      postfix    scripts   shutdown    sw_management  windowmanager
    auditd         boot        cron            ide       ldap      mouse     nfs       powersave  scsidev   sound       sysctl         ypbind
    autofs         bootloader  cups            joystick  locate    named     ntp       proxy      security  ssh         syslog         zmd
    autoinstall    bootsplash  displaymanager  kernel    lvm       net-snmp  openldap  saslauthd  sendmail  suseconfig  tetex
    
    Code:
    # netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 localhost:929           *:*                     LISTEN      3297/famd
    tcp        0      0 *:mysql                 *:*                     LISTEN      9576/mysqld-max
    tcp        0      0 *:sunrpc                *:*                     LISTEN      3189/portmap
    tcp        0      0 *:ndmp                  *:*                     LISTEN      3232/perl
    tcp        0      0 *:hosts2-ns             *:*                     LISTEN      21777/ispconfig_htt
    tcp        0      0 *:ftp                   *:*                     LISTEN      5690/proftpd: (acce
    tcp        0      0 iamaserver.do:domain    *:*                     LISTEN      22283/named
    tcp        0      0 localhost:domain        *:*                     LISTEN      22283/named
    tcp        0      0 *:smtp                  *:*                     LISTEN      5701/master
    tcp        0      0 localhost:953           *:*                     LISTEN      22283/named
    tcp        0      0 *:imaps                 *:*                     LISTEN      3159/couriertcpd
    tcp        0      0 *:pop3s                 *:*                     LISTEN      3180/couriertcpd
    tcp        0      0 *:pop3                  *:*                     LISTEN      3181/couriertcpd
    tcp        0      0 *:imap                  *:*                     LISTEN      3143/couriertcpd
    tcp        0      0 *:www-http              *:*                     LISTEN      21644/httpd2-prefor
    tcp        0      0 *:ssh                   *:*                     LISTEN      3053/sshd
    tcp        0      0 *:smtp                  *:*                     LISTEN      5701/master
    tcp        0      0 localhost:953           *:*                     LISTEN      22283/named
    tcp        0      0 *:https                 *:*                     LISTEN      21644/httpd2-prefor
    
    Reconfigure with Yast? Where? Is there not a simply config files anywhere?

    Seems to be running but how to configure? In manual I can't find anything about Courier ... :(

    To switch to authpam was easy ... but now ... ?

    Code:
    Jul 23 20:06:58 iamaserver pop3d: LOGIN FAILED, user=web26_123-superdomain.com, ip=[::ffff:1.2.3.4]
    Jul 23 20:06:58 iamaserver pop3d: authentication error: Input/output error
    Jul 23 20:16:08 iamaserver authdaemond: stopping authdaemond children
    Jul 23 20:16:08 iamaserver authdaemond: modules="authpam", daemons=5
    Jul 23 20:16:08 iamaserver authdaemond: Installing libauthpam
    Jul 23 20:16:08 iamaserver authdaemond: Installation complete: authpam
    Jul 23 20:16:24 iamaserver pop3d: Connection, ip=[::ffff:1.2.3.4]
    Jul 23 20:16:24 iamaserver pop3d: chdir Maildir: No such file or directory
    Jul 23 20:16:31 iamaserver pop3d: LOGIN FAILED, user=web26_123-superdomain.com, ip=[::ffff:1.2.3.4]
    Jul 23 20:16:36 iamaserver pop3d: LOGOUT, ip=[::ffff:1.2.3.4]
    Jul 23 20:16:36 iamaserver pop3d: Disconnected, ip=[::ffff:1.2.3.4]
    Jul 23 20:16:36 iamaserver pop3d: Connection, ip=[::ffff:1.2.3.4]
    Jul 23 20:16:37 iamaserver pop3d: LOGIN FAILED, [email protected], ip=[::ffff:1.2.3.4]
    Jul 23 20:16:46 iamaserver pop3d: LOGOUT, ip=[::ffff:1.2.3.4]
    Jul 23 20:16:46 iamaserver pop3d: Disconnected, ip=[::ffff:1.2.3.4]
    Jul 23 20:17:13 iamaserver postfix/smtpd[32259]: warning: database /etc/postfix/virtusertable.db is older than source file /etc/postfix/virtusertable
    Jul 23 20:17:13 iamaserver postfix/smtpd[32259]: connect from unknown[123.254.154.78]
    Jul 23 20:17:16 iamaserver postfix/smtpd[32259]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_ destination" instead
    Jul 23 20:17:16 iamaserver postfix/cleanup[32263]: warning: database /etc/postfix/virtusertable.db is older than source file /etc/postfix/virtusertable
    Jul 23 20:17:16 iamaserver postfix/smtpd[32259]: 7484C1A7372: client=unknown[123.254.154.78]
    Jul 23 20:17:24 iamaserver postfix/cleanup[32263]: 7484C1A7372: message-id=<[email protected]>
    
    
    later ...

    Maildir set in ISPConfig:

    Code:
    Jul 23 20:28:42 iamaserver pop3d: Connection, ip=[::ffff:1.2.3.4]
    Jul 23 20:28:43 iamaserver pop3d: LOGIN, user=web26_123-superdomain.com, ip=[::ffff:1.2.3.4]
    Jul 23 20:28:43 iamaserver pop3d: LOGOUT, user=web26_123-superdomain.com, ip=[::ffff:1.2.3.4], top=0, retr=0, rcvd=12, sent=39, time=0
    
    still the old problem not receiving mails ...

    Code:
    Jul 23 20:30:40 iamaserver postfix/smtpd[1020]: warning: database /etc/postfix/virtusertable.db is older than source file /etc/postfix/virtusertable
    Jul 23 20:30:40 iamaserver postfix/smtpd[1020]: connect from unknown[x.y.230.z]
    Jul 23 20:30:40 iamaserver postfix/smtpd[1020]: setting up TLS connection from unknown[x.y.230.z]
    Jul 23 20:30:40 iamaserver postfix/smtpd[1020]: TLS connection established from unknown[x.y.230.z]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Jul 23 20:30:40 iamaserver postfix/smtpd[1020]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
    Jul 23 20:30:40 iamaserver postfix/smtpd[1020]: NOQUEUE: reject: RCPT from unknown[x.y.230.z]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<paco.sender-domain.com>
    Jul 23 20:30:40 iamaserver postfix/smtpd[1020]: disconnect from unknown[x.y.230.z]
    
     
    Last edited: Jul 23, 2007
  6. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /etc/courier
    ?

    Just run
    Code:
    yast
    on the command line. You should then get the YaST interface. Maybe you find something related to Courier there.

    Please run
    Code:
    postmap /etc/postfix/virtusertable
    and replace check_relay_domains with reject_unauth_destination in /etc/postfix/main.cf. Then restart Postfix.
     
  7. Elfchen

    Elfchen New Member

    Think I've found another error:

    Code:
    postmap local-host-names
    postmap: warning: local-host-names, line 7: expected format: key whitespace value
    postmap: warning: local-host-names, line 8: expected format: key whitespace value
    postmap: warning: local-host-names, line 9: expected format: key whitespace value
    postmap: warning: local-host-names, line 10: expected format: key whitespace value
    postmap: warning: local-host-names, line 11: expected format: key whitespace value
    postmap: warning: local-host-names, line 12: expected format: key whitespace value
    postmap: warning: local-host-names, line 13: expected format: key whitespace value
    postmap: warning: local-host-names, line 14: expected format: key whitespace value
    postmap: warning: local-host-names, line 15: expected format: key whitespace value
    postmap: warning: local-host-names, line 16: expected format: key whitespace value
    postmap: warning: local-host-names, line 17: expected format: key whitespace value
    postmap: warning: local-host-names, line 18: expected format: key whitespace value
    postmap: warning: local-host-names, line 19: expected format: key whitespace value
    postmap: warning: local-host-names, line 20: expected format: key whitespace value
    postmap: warning: local-host-names, line 21: expected format: key whitespace value
    postmap: warning: local-host-names, line 22: expected format: key whitespace value
    postmap: warning: local-host-names, line 23: expected format: key whitespace value
    postmap: warning: local-host-names, line 24: expected format: key whitespace value
    postmap: warning: local-host-names, line 25: expected format: key whitespace value
    postmap: warning: local-host-names, line 26: expected format: key whitespace value
    postmap: warning: local-host-names, line 27: expected format: key whitespace value
    
    Inside local-host-names all domain names are listed seperated line by line. Maybe this format is not accepted. Searching goes on ...

    Btw: Postfix manual:
    INPUT FILE FORMAT
    The format of a lookup table input file is as follows:

    o A table entry has the form

    key whitespace value


    local-host-names:

    Code:
    ###################################
    #
    # ISPConfig local-host-names Configuration File
    #         Version 1.0
    #
    ###################################
    localhost 
    iamaserver.mydomain.com
    localhost.iamaserver.mydomain.com
    localhost.mydomain.com [COLOR="Red"]<--- this seems to be wrong[/COLOR]
    localhost.localdomain
    www.123-superdomain.com
    ...
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    
    Additional it seems not be the valid postfix format. As I understand a valid format would be:

    domain.com OK
    domain2.com OK

    ... this is missing in ISPConfig created entries ...

    Strange ... strange:

    Code:
    Jul 24 21:53:40 iamaserver postfix/smtpd[30182]: connect from unknown[x.y.230.z]
    Jul 24 21:53:40 iamaserver postfix/smtpd[30182]: setting up TLS connection from unknown[x.y.230.z]
    Jul 24 21:53:40 iamaserver postfix/smtpd[30182]: TLS connection established from unknown[x.y.230.z]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Jul 24 21:53:40 iamaserver postfix/smtpd[30182]: 4D9711A740F: client=unknown[x.y.230.z]
    Jul 24 21:53:40 iamaserver postfix/cleanup[30185]: 4D9711A740F: message-id=<[email protected]>
    Jul 24 21:53:40 iamaserver postfix/qmgr[30152]: 4D9711A740F: from=<[email protected]>, size=762, nrcpt=1 (queue active)
    Jul 24 21:53:40 iamaserver postfix/smtpd[30182]: disconnect from unknown[x.y.230.z]
    Jul 24 21:53:40 iamaserver postfix/smtp[30186]: 4D9711A740F: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=0.11, delays=0.06/0.04/0.01/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=iamaserver.mydomain.biz type=AAAA: Host not found)
    Jul 24 21:53:40 iamaserver postfix/cleanup[30185]: 6E41C1A7887: message-id=<[email protected]>
    Jul 24 21:53:40 iamaserver postfix/qmgr[30152]: 6E41C1A7887: from=<>, size=3060, nrcpt=1 (queue active)
    Jul 24 21:53:40 iamaserver postfix/bounce[30187]: 4D9711A740F: sender non-delivery notification: 6E41C1A7887
    Jul 24 21:53:40 iamaserver postfix/qmgr[30152]: 4D9711A740F: removed
    Jul 24 21:53:40 iamaserver postfix/smtp[30164]: certificate verification failed for paco.netbone-digital.com: num=18:self signed certificate
    Jul 24 21:53:40 iamaserver postfix/smtp[30164]: 6E41C1A7887: to=<[email protected]>, relay=paco.sender-domain.com[x.y.230.z]:25, delay=0.24, delays=0.02/0.01/0.15/0.05, dsn=2.0.0, [COLOR="Red"]status=sent (250 Ok: queued as 3E40C48E49)[/COLOR]
    Jul 24 21:53:40 iamaserver postfix/qmgr[30152]: 6E41C1A7887: removed
    
    but where is the mail now?

    Code:
    Jul 24 21:54:42 iamaserver pop3d: Connection, ip=[::ffff:x.167.53.3]
    Jul 24 21:54:50 iamaserver pop3d: LOGIN, user=web26_123-superdomain.com, ip=[::ffff:x.167.53.3]
    Jul 24 21:54:51 iamaserver pop3d: LOGOUT, user=web26_123-superdomain.com, ip=[::ffff:x.167.53.3], top=0, retr=0, rcvd=12, sent=39, time=1
    Jul 24 21:57:00 iamaserver postfix/anvil[30184]: statistics: max connection rate 1/60s for (smtp:x.y.230.z) at Jul 24 21:53:40
    Jul 24 21:57:00 iamaserver postfix/anvil[30184]: statistics: max connection count 1 for (smtp:x.y.230.z) at Jul 24 21:53:40
    Jul 24 21:57:00 iamaserver postfix/anvil[30184]: statistics: max cache size 1 at Jul 24 21:53:40
    
    Become more and more confused ...
     
    Last edited: Jul 24, 2007
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Why do you run postmap on this file? Postmap is never used for local-host-names as local-host-names is no hash database!
     
  9. Elfchen

    Elfchen New Member

    good idea not to do it ... seems I become crazy ... :D

    Code:
    Jul 24 22:14:38 iamaserver postfix/smtp[30534]: 80C721A7887: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=0.02, delays=0.02/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=iamaserver.mydomain.biz type=AAAA: Host not found)
    
    Ahhh - type mismatch in zonefile ... grmpf ... updating ...

    So now ...

    Code:
    Jul 24 22:24:04 iamaserver postfix/smtpd[31048]: connect from unknown[x.y.230.z]
    Jul 24 22:24:04 iamaserver postfix/smtpd[31048]: setting up TLS connection from unknown[x.y.230.z]
    Jul 24 22:24:04 iamaserver postfix/smtpd[31048]: TLS connection established from unknown[x.y.230.z]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Jul 24 22:24:04 iamaserver postfix/smtpd[31048]: NOQUEUE: reject: RCPT from unknown[x.y.230.z]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<paco.sender-domain.com>
    Jul 24 22:24:04 iamaserver postfix/smtpd[31048]: disconnect from unknown[x.y.230.z]
    
    in postfix main.cf

    Code:
    virtual_maps = hash:/etc/postfix/virtusertable
    
    in virtusertable

    Code:
    ...
    [email protected]    web26_123-superdomain.com
    ...
    
    made postmap virtusertable to create .db and restarted postfix.

    waaaaaaahhhhh:

    Code:
    Jul 24 22:30:51 iamaserver postfix/smtpd[31309]: connect from unknown[x.y.230.z]
    Jul 24 22:30:51 iamaserver postfix/smtpd[31309]: setting up TLS connection from unknown[x.y.230.z]
    Jul 24 22:30:51 iamaserver postfix/smtpd[31309]: TLS connection established from unknown[x.y.230.z]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Jul 24 22:30:51 iamaserver postfix/smtpd[31309]: F14021A740F: client=unknown[x.y.230.z]
    Jul 24 22:30:52 iamaserver postfix/cleanup[31312]: F14021A740F: message-id=<[email protected]>
    Jul 24 22:30:52 iamaserver postfix/qmgr[31243]: F14021A740F: from=<[email protected]>, size=764, nrcpt=1 (queue active)
    Jul 24 22:30:52 iamaserver postfix/smtpd[31309]: disconnect from unknown[x.y.230.z]
    Jul 24 22:30:52 iamaserver postfix/smtp[31314]: F14021A740F: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=0.15, delays=0.09/0.05/0.01/0, dsn=5.4.4,[COLOR="Red"] status=bounced (Host or domain name not found. Name service error for name=iamaserver.mydomain.biz type=AAAA: Host not found)[/COLOR]
    Jul 24 22:30:52 iamaserver postfix/cleanup[31312]: 266DB1A7887: message-id=<[email protected]>
    Jul 24 22:30:52 iamaserver postfix/qmgr[31243]: 266DB1A7887: from=<>, size=3062, nrcpt=1 (queue active)
    Jul 24 22:30:52 iamaserver postfix/bounce[31316]: F14021A740F: sender non-delivery notification: 266DB1A7887
    Jul 24 22:30:52 iamaserver postfix/qmgr[31243]: F14021A740F: removed
    Jul 24 22:30:52 iamaserver postfix/smtp[31258]: certificate verification failed for paco.sender-domain.com: num=18:self signed certificate
    Jul 24 22:30:52 iamaserver postfix/smtp[31258]: 266DB1A7887: to=<[email protected]>, relay=paco.sender-domain.com[x.y.230.z]:25, delay=0.23, delays=0.02/0/0.16/0.05, dsn=2.0.0, status=sent (250 Ok: queued as 8584E6C9E9)
    Jul 24 22:30:52 iamaserver postfix/qmgr[31243]: 266DB1A7887: removed
    
    we'll see what will happen when it has eaten dns update ...

    aga :(

    Code:
    zone "mydomain.biz" {
            type [COLOR="Red"]master[/COLOR]; <--- aga!
            file "pri.mydomain.biz";
    };
    
    where did this come from? In ISPConfig both are not set:

    Create DNS:
    Create DNS-MX:

    Code:
    Jul 24 22:45:50 iamaserver postfix/postmap[32094]: fatal: open database /etc/postfix/[COLOR="Red"][B]virtusertable.db: No such file or directory[/B][/COLOR]
    
    
    # l /etc/postfix/
    total 444
    drwxr-xr-x  3 root root  4096 Jul 24 22:41 ./
    drwxr-xr-x 92 root root 12288 Jul 24 22:45 ../
    -rw-r--r--  1 root root     0 Jul 22 22:34 INFO
    -rw-r--r--  1 root root 11942 Nov 25  2006 LICENSE
    -rw-r--r--  1 root root  1629 Nov 25  2006 TLS_LICENSE
    -rw-r--r--  1 root root     0 Jul 22 22:34 WARN
    -rw-r--r--  1 root root 17832 Nov 25  2006 access
    -rw-r--r--  1 root root 12288 Jun 20 18:26 access.db
    -rw-r--r--  1 root root  3606 Nov 25  2006 bounce.cf.default
    -rw-r--r--  1 root root 11175 Nov 25  2006 canonical
    -rw-r--r--  1 root root 12288 Jun 20 18:26 canonical.db
    -rw-r--r--  1 root root   509 Jun 20 18:26 dynamicmaps.cf
    -rw-r--r--  1 root root  9920 Nov 25  2006 generic
    -rw-r--r--  1 root root 16838 Nov 25  2006 header_checks
    -rw-r--r--  1 root root   598 Jul 24 22:45 local-host-names
    -rw-r--r--  1 root root 12288 Jul 24 21:48 local-host-names.db
    -rw-r--r--  1 root root   598 Jul 24 22:45 local-host-names~
    -rw-r--r--  1 root root 28181 Jul 24 21:52 main.cf
    -rw-r--r--  1 root root 26267 Jun 20 18:26 main.cf.2007-06-20
    -rw-r--r--  1 root root 27964 Jun 24 19:41 main.cf.SuSEconfig
    -rw-r--r--  1 root root   122 Nov 25  2006 main.cf.default
    -rw-r--r--  1 root root 27969 Jun 19 18:35 main.cf.orig
    -rw-r--r--  1 root root  1020 Nov 25  2006 makedefs.out
    -rw-r--r--  1 root root  3941 Jun 20 19:09 master.cf
    -rw-r--r--  1 root root  3912 Jun 20 18:26 master.cf.2007-06-20
    -rw-r--r--  1 root root  3942 Jun 20 19:13 master.cf.SuSEconfig
    -rw-r--r--  1 root root  2255 Nov 25  2006 openssl_postfix.conf.in
    -rwxr-xr-x  1 root root 22086 Nov 25  2006 post-install*
    -rw-r--r--  1 root root 14887 Nov 25  2006 postfix-files
    -rwxr-xr-x  1 root root  6366 Nov 25  2006 postfix-script*
    -rw-------  1 root root  1024 Jul 24 22:42 prng_exch
    -rw-r--r--  1 root root   199 Nov 25  2006 relay_ccerts
    -rw-r--r--  1 root root 12288 Jun 20 18:26 relay_ccerts.db
    -rw-r--r--  1 root root  6805 Nov 25  2006 relocated
    -rw-r--r--  1 root root 12288 Jun 20 18:26 relocated.db
    -rw-------  1 root root   172 Nov 25  2006 sasl_passwd
    -rw-------  1 root root 12288 Jun 20 18:26 sasl_passwd.db
    -rw-r--r--  1 root root   412 Nov 25  2006 sender_canonical
    -rw-r--r--  1 root root 12288 Jun 20 18:26 sender_canonical.db
    drwxr-xr-x  2 root root  4096 Jun 20 19:01 ssl/
    -rw-r--r--  1 root root 12081 Nov 25  2006 transport
    -rw-r--r--  1 root root 12288 Jun 20 18:26 transport.db
    -rw-r--r--  1 root root 11984 Nov 25  2006 virtual
    -rw-r--r--  1 root root 12288 Jul 24 21:48 virtual.db
    -rw-r--r--  1 root root  1903 Jul 24 22:45 virtusertable
    -rw-r--r--  1 root root 12288 Jul 24 22:22 virtusertable-db.alt
    -rw-r--r--  1 root root 12288 Jul 24 22:45 [COLOR="Red"][B]virtusertable.db[/B][/COLOR]
    -rw-r--r--  1 root root  1903 Jul 24 22:45 virtusertable~
    
    ...later...
    
    Jul 24 22:48:45 iamaserver postfix/smtpd[32319]: warning: database /etc/postfix/virtusertable.db is older than source file /etc/postfix/virtusertable
    
    but think it did not exists - but it is here but ... ahhh!!!! so this seems to be the reason for Recipient address rejected: User unknown in local recipient table - but how to solve such a complete silly thing?

    Code:
    Configuration Check 	
    Postfix Version: 2.3.2
    
    Hostname 	iamaserver
    
    main.cf
    
    non-default parameters
    alias_maps 	hash:/etc/aliases
    biff 	no
    broken_sasl_auth_clients 	yes
    canonical_maps 	hash:/etc/postfix/canonical
    daemon_directory 	/usr/lib/postfix
    html_directory 	/usr/share/doc/packages/postfix/html
    inet_protocols 	all
    mailbox_size_limit 	0
    manpage_directory 	/usr/share/man
    masquerade_exceptions 	root
    mydestination 	/etc/postfix/local-host-names
    mydomain 	mydomain.biz
    myhostname 	iamaserver.$mydomain
    mynetworks 	127.0.0.0/8
    readme_directory 	/usr/share/doc/packages/postfix/README_FILES
    relocated_maps 	hash:/etc/postfix/relocated
    sample_directory 	/usr/share/doc/packages/postfix/samples
    sender_canonical_maps 	hash:/etc/postfix/sender_canonical
    setgid_group 	maildrop
    smtp_tls_note_starttls_offer 	yes
    smtp_use_tls 	yes
    smtpd_recipient_restrictions 	permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_sasl_auth_enable 	yes
    smtpd_sender_restrictions 	hash:/etc/postfix/access
    smtpd_tls_CAfile 	/etc/postfix/ssl/cacert.pem
    smtpd_tls_cert_file 	/etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file 	/etc/postfix/ssl/smtpd.key
    smtpd_tls_loglevel 	1
    smtpd_tls_received_header 	yes
    smtpd_use_tls 	yes
    transport_maps 	hash:/etc/postfix/transport
    virtual_alias_domains 	hash:/etc/postfix/virtual
    
    main.cf
    
    parameters defined as per defaults
    command_directory 	/usr/sbin
    config_directory 	/etc/postfix
    debug_peer_level 	2
    defer_transports 	
    disable_dns_lookups 	no
    disable_mime_output_conversion 	no
    inet_interfaces 	all
    mail_owner 	postfix
    mail_spool_directory 	/var/mail
    mailbox_command 	
    mailbox_transport 	
    mailq_path 	/usr/bin/mailq
    masquerade_classes 	envelope_sender, header_sender, header_recipient
    masquerade_domains 	
    message_size_limit 	10240000
    mynetworks_style 	subnet
    newaliases_path 	/usr/bin/newaliases
    queue_directory 	/var/spool/postfix
    relayhost 	
    sendmail_path 	/usr/sbin/sendmail
    smtp_sasl_auth_enable 	no
    smtpd_client_restrictions 	
    smtpd_helo_required 	no
    smtpd_helo_restrictions 	
    smtpd_sasl_local_domain 	
    smtpd_sasl_security_options 	noanonymous
    smtpd_tls_auth_only 	no
    smtpd_tls_session_cache_timeout 	3600s
    strict_8bitmime 	no
    strict_rfc821_envelopes 	no
    tls_random_source 	dev:/dev/urandom
    unknown_local_recipient_reject_code 	550
    
    it seems like virtual_maps = hash:/etc/postfix/virtusertable is not read or recognized ... because can't find it configuration check output ... :?

    => virtual_maps
    Available before Postfix version 2.0. With Postfix version 2.0 and later, this is replaced by separate controls: virtual_alias_domains and virtual_alias_maps, but changeing to virtual_alias maps will also result in User unknown in local recipient table
     
    Last edited: Jul 24, 2007
  10. Elfchen

    Elfchen New Member

    a little bit more:

    Code:
    Jul 24 23:46:50 iamaserver postfix/smtp[1601]: 3E3171A76A7: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=0.11, delays=0.07/0.04/0.01/0, dsn=5.4.6, status=bounced (mail for iamaserver.mydomain.biz loops back to myself)
    
    now it find to sort into which user account, but now I have the loops back to myself error :eek:

    added:

    iamaserver.mydomain.biz

    to local-host-names. now it accepts mail.
     
    Last edited: Jul 24, 2007
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Add the line:

    iamaserver.mydomain.biz

    at the end of the file /etc/postfix/local-host-names

    and restart postfix.
     

Share This Page