Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs

Discussion in 'HOWTO-Related Questions' started by hdtpsi, Sep 9, 2006.

  1. hdtpsi

    hdtpsi New Member

    Cant send test email with amavisd installed
    log output /var/log/mail.log

    Sep 10 03:38:38 mythserver amavis[17804]: (17804-03) mail_via_smtp: 450 4.4.1 Can't connect to 127.0.0.1 port 10024, Operation now in progress at /usr/sbin/amavisd-new line 2912, <GEN9> line 200., id=17804-03
    Sep 10 03:38:38 mythserver amavis[17804]: (17804-03) Not-Delivered, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, Hits: -0.137
    Sep 10 03:38:38 mythserver amavis[17806]: (17806-04) Warning: sending SMTP QUIT command failed: 450 4.4.1 Can't connect to 127.0.0.1 port 10024, Operation now in progress at /usr/sbin/amavisd-new line 2912, <GEN9> line 200., id=17804-03\n
    Sep 10 03:38:38 mythserver amavis[17806]: (17806-04) mail_via_smtp: 451 4.6.0 Bad SMTP code, id=17806-04, from MTA: "354 End data with <CR><LF>.<CR><LF>"
    Sep 10 03:38:38 mythserver amavis[17806]: (17806-04) Not-Delivered, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, Hits: -0.136
    Sep 10 03:38:38 mythserver amavis[17805]: (17805-03) Warning: sending SMTP QUIT command failed: 451 4.6.0 Bad SMTP code, id=17806-04, from MTA: "354 End data with <CR><LF>.<CR><LF>"\n
    Sep 10 03:38:38 mythserver amavis[17805]: (17805-03) mail_via_smtp: 451 4.6.0 Bad SMTP code, id=17805-03, from MTA: "354 End data with <CR><LF>.<CR><LF>"
    Sep 10 03:38:38 mythserver amavis[17805]: (17805-03) Not-Delivered, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, Hits: -0.136
    Sep 10 03:38:38 mythserver amavis[17807]: (17807-04) Warning: sending SMTP QUIT command failed: 451 4.6.0 Bad SMTP code, id=17805-03, from MTA: "354 End data with <CR><LF>.<CR><LF>"\n
    Sep 10 03:38:38 mythserver amavis[17807]: (17807-04) mail_via_smtp: 451 4.6.0 Bad SMTP code, id=17807-04, from MTA: "354 End data with <CR><LF>.<CR><LF>"
    Sep 10 03:38:38 mythserver amavis[17807]: (17807-04) Not-Delivered, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, Hits: -0.135
    Sep 10 03:38:38 mythserver postfix/smtp[18829]: 3A58A6F0A6: to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=3021, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.6.0 Bad SMTP code, id=17807-04, from MTA: "354 End data with <CR><LF>.<CR><LF>" (in reply to end of DATA command))
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    netstat -tap
    ?
     
  3. hdtpsi

    hdtpsi New Member

    Pop3 access

    Amavis is working Fine now just used apt to remove and reinstall it seems to be fine now i can send and recieve messages with telnet and can forward from client software on the localhost (thunderbird but it doesnt like smtp-auth) but pop3 access is refused all the time with login-refused from server.
    Can telnet pop3 it seems to be responding OK but no access.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's the exact error message? Any errors in your log files?
     
  5. hdtpsi

    hdtpsi New Member

    Here is the log /var/log/mail.log

    Sep 18 23:53:30 mythserver courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    Sep 18 23:53:41 mythserver courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Sep 18 23:54:11 mythserver last message repeated 2 times
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Are you sure you use the correct username (must be an email address!) and password?
     
  7. Anne_Kleyheeg

    Anne_Kleyheeg New Member

    Maildir

    I've compleet the configuration and it works.
    But is get 1 error:
    chdir ansmeijlink.nl/root/: No such file or directory
    This is because the Maildir map doesn't excist.
    Must i create it or have i done something wrong.
    And where must i create the Maildir
     
  8. hdtpsi

    hdtpsi New Member

    I am using email for username and correct password ofcourse but i think mysql is not bind to 127.0.0.1 what are the dissadvantages of running your mysql srcipts with host = localhost or how to fix mysql issue
     
  9. hdtpsi

    hdtpsi New Member

    When i add bind-address = 127.0.0.1 to /etc/mysql/my.cnf the machine crashes
    It is a Knoppmyth R5C7 distro of debian sarge
     
  10. falko

    falko Super Moderator Howtoforge Staff

    You must send a mail first to that user. The Maildir is created when the first mail arrives.
     
  11. falko

    falko Super Moderator Howtoforge Staff

    It doesn't work with localhost because Postfix is running chrooted. What's the output of
    Code:
    netstat -tap
    ?
     

Share This Page