Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04

Discussion in 'HOWTO-Related Questions' started by mtzcesar, May 30, 2008.

  1. mtzcesar

    mtzcesar New Member

    I have trouble logging in squirrelmail , this is my log
    May 30 13:47:22 mail postfix/cleanup[8680]: 3F7B72280DF: message-id=<20080530184722.3F7B72280DF@mail.colegio.edu>
    May 30 13:47:22 mail postfix/qmgr[7748]: 3F7B72280DF: from=<root@colegio.edu>, size=331, nrcpt=1 (queue active)
    May 30 13:47:24 mail postfix/smtpd[8688]: connect from localhost[127.0.0.1]
    May 30 13:47:24 mail postfix/trivial-rewrite[8682]: warning: do not list domain colegio.edu in BOTH mydestination and virtual_mailbox_domains
    May 30 13:47:24 mail postfix/trivial-rewrite[8682]: warning: do not list domain colegio.edu in BOTH mydestination and virtual_mailbox_domains
    May 30 13:47:24 mail postfix/smtpd[8688]: D8CDF2280DE: client=localhost[127.0.0.1]
    May 30 13:47:24 mail postfix/cleanup[8680]: D8CDF2280DE: message-id=<20080530184722.3F7B72280DF@mail.colegio.edu>
    May 30 13:47:24 mail postfix/qmgr[7748]: D8CDF2280DE: from=<root@colegio.edu>, size=998, nrcpt=1 (queue active)
    May 30 13:47:24 mail postfix/smtpd[8688]: disconnect from localhost[127.0.0.1]
    May 30 13:47:24 mail postfix/trivial-rewrite[8682]: warning: do not list domain colegio.edu in BOTH mydestination and virtual_mailbox_domains
    May 30 13:47:24 mail amavis[5570]: (05570-03) Passed CLEAN, <root@colegio.edu> -> <aaguilara@colegio.edu>, Message-ID: <20080530184722.3F7B72280DF@mail.colegio.edu>, mail_id: BO+pfmr32NRw, Hits: 2.898, size: 331, queued_as: D8CDF2280DE, 2616 ms
    May 30 13:47:24 mail postfix/smtp[8683]: 3F7B72280DF: to=<aaguilara@colegio.edu>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.7, delays=0.06/0.01/0/2.6, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as D8CDF2280DE)
    May 30 13:47:24 mail postfix/qmgr[7748]: 3F7B72280DF: removed
    May 30 13:47:24 mail postfix/local[8689]: D8CDF2280DE: to=<aaguilara@colegio.edu>, relay=local, delay=0.06, delays=0.02/0.01/0/0.03, dsn=5.1.1, status=bounced (unknown user: "aaguilara")
    May 30 13:47:24 mail postfix/cleanup[8680]: E650D2280DF: message-id=<20080530184724.E650D2280DF@mail.colegio.edu>
    May 30 13:47:24 mail postfix/bounce[8690]: D8CDF2280DE: sender non-delivery notification: E650D2280DF
    May 30 13:47:24 mail postfix/qmgr[7748]: E650D2280DF: from=<>, size=2944, nrcpt=1 (queue active)
    May 30 13:47:24 mail postfix/trivial-rewrite[8682]: warning: do not list domain colegio.edu in BOTH mydestination and virtual_mailbox_domains
    May 30 13:47:24 mail postfix/qmgr[7748]: D8CDF2280DE: removed
    May 30 13:47:24 mail postfix/trivial-rewrite[8682]: warning: do not list domain colegio.edu in BOTH mydestination and virtual_mailbox_domains
    May 30 13:47:24 mail postfix/local[8689]: E650D2280DF: to=<cesar@colegio.edu>, orig_to=<root@colegio.edu>, relay=local, delay=0.06, delays=0.02/0/0/0.04, dsn=2.0.0, status=sent (delivered to mailbox)
    May 30 13:47:24 mail postfix/qmgr[7748]: E650D2280DF: removed

    users exist in MySQL



    State PID/Program name
    tcp 0 0 localhost:10024 *:* LISTEN 4993/amavisd (maste
    tcp 0 0 localhost:10025 *:* LISTEN 7744/master
    tcp 0 0 localhost:mysql *:* LISTEN 8117/mysqld
    tcp 0 0 *:www *:* LISTEN 7898/apache2
    tcp 0 0 mail.colegio.com:webmin *:* LISTEN 6203/perl
    tcp 0 0 mail.colegio.com:domain *:* LISTEN 4907/named
    tcp 0 0 localhost:domain *:* LISTEN 4907/named
    tcp 0 0 localhost:postgresql *:* LISTEN 5161/postgres
    tcp 0 0 *:smtp *:* LISTEN 7744/master
    tcp 0 0 localhost:953 *:* LISTEN 4907/named
    tcp6 0 0 [::]:imaps [::]:* LISTEN 5602/couriertcpd
    tcp6 0 0 [::]:pop3s [::]:* LISTEN 5642/couriertcpd
    tcp6 0 0 [::]:pop3 [::]:* LISTEN 5619/couriertcpd
    tcp6 0 0 [::]:imap2 [::]:* LISTEN 5574/couriertcpd
    tcp6 0 0 [::]:domain [::]:* LISTEN 4907/named
    tcp6 0 0 [::]:ssh [::]:* LISTEN 4933/sshd



    and I can not begin in squirrelmail the error is
    30 13:23:08 mail imapd: LOGIN FAILED, method=PLAIN, ip=[::ffff:127.0.0.1]
    May 30 13:23:13 mail imapd: LOGIN FAILED, user=root, ip=[::ffff:127.0.0.1]
    whit any user

    any ideas?
    tks
     
  2. zeroangle

    zeroangle New Member

    Enable the logging for imap authdeamon and then post your findings.

    Edit the authdaemonrc file
    # vim /etc/courier/authdaemonrc

    change the line
    DEBUG_LOGIN=0
    to
    DEBUG_LOGIN=1


    reload courier authdeamon
    # /etc/init.d/courier-authdaemon

    now login via squirrelmail
    post all the lines that read:
    $MONTH $DAY $TIME $SERVER imapd:


    The postfix/_services_ has nothing to do with logging into squirrel mail.
     
  3. zeroangle

    zeroangle New Member

    also if you've followed the howto, you should be logging in as user@domain.tld not as root
     
  4. falko

    falko Super Moderator

Share This Page