Let me start off by saying how great most of the tutorials on 'HowtoFAorge' are, great work guys. Ok I have followed the Debian Sarge tutorial to the 'T' a few times now and cannot ever seem to log in using pop3 or pop3s, I have not tired IMAP as yet. I am using DynDNS to give my server a static hostname ( wizzardry.ath.cx), my server is internal geting it's IP from a dlink router and is using 192.168.0.100. All other modules in the server work Apache, bind, FTP, I can send and recieve mail internally using a virtual user and domain, here is a quick output of this: Code: wizzardry:~# telnet wizzardry.ath.cx 25 Trying 68.146.194.17... Connected to S0106001346a8cfbd.cg.shawcable.net . Escape character is '^]'. 220 wizzardry.ath.cx ESMTP Postfix (Debian/GNU) ehlo wizzardry.ath.cx 250-wizzardry.ath.cx 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH DIGEST-MD5 CRAM-MD5 250-AUTH=DIGEST-MD5 CRAM-MD5 250 8BITMIME mail from:< [email protected]> 250 Ok rcpt to:<[email protected]> 250 Ok data 354 End data with <CR><LF>.<CR><LF> test . 250 Ok: queued as 751223E82C4 quit 221 Bye Connection closed by foreign host. wizzardry:~# here is my search for the mail and what it contains: Code: wizzardry:~# find /home/vmail/ /home/vmail/ /home/vmail/.bashrc /home/vmail/.bash_profile /home/vmail/wizzardry.ath.cx /home/vmail/wizzardry.ath.cx/admin /home/vmail/wizzardry.ath.cx/admin/tmp /home/vmail/wizzardry.ath.cx/admin/cur /home/vmail/wizzardry.ath.cx/admin/new /home/vmail/wizzardry.ath.cx/admin/new/1161915029.V301I2c00b.localhost.localdomain /home/vmail/please.work /home/vmail/please.work/please /home/vmail/please.work/please/tmp /home/vmail/please.work/please/cur /home/vmail/please.work/please/new /home/vmail/please.work/please/new/1161949607.V301I2c011.localhost.localdomain wizzardry:~# so as you can see my new virtual user (please) and domain (pleas.work) receive the mail into it's mailbox, here is the output of the mail read directly, using (vi /home/vmail/please.work/please/new/1161949607.V301I2c011.localhost.localdomain: Code: Return-Path: <[email protected]> X-Original-To: [email protected] Delivered-To: [email protected] Received: from localhost (localhost.localdomain [127.0.0.1]) by wizzardry.ath.cx (Postfix) with ESMTP id 8154C3E82F5 for <[email protected]>; Fri, 27 Oct 2006 05:46:47 -0600 (MDT) Received: from wizzardry.ath.cx ([ 127.0.0.1]) by localhost (wizzardry [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21475-01 for <[email protected] >; Fri, 27 Oct 2006 05:46:34 -0600 (MDT) Received: from wizzardry.ath.cx (S0106001346a8cfbd.cg.shawcable.net [ 68.146.194.17]) by wizzardry.ath.cx (Postfix) with ESMTP id 751223E82C4 for <[email protected] >; Fri, 27 Oct 2006 05:46:09 -0600 (MDT) Message-Id: <[email protected]> Date: Fri, 27 Oct 2006 05:46:09 -0600 (MDT) From: [email protected] To: undisclosed-recipients: ; X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at localhost test now when I try to log into the server using pop3s port 995 using outlook express I get and accept the server chain root certificate trust error, I set up my user and domain and pop3 server to be [email protected], pop3 and smtp are wizzardry.ath.cx I do have the ssl connection boxes ticked for port 25(smtp) and (995) pop3-ssl, and have the my server requires authentication box ticket but the user pass is not accepte. I get this error when cancelling out: Code: There was a problem logging onto your mail server. Your Password was rejected. Account: 'wizzardry.ath.cx', Server: 'wizzardry.ath.cx ', Protocol: POP3, Server Response: '-ERR Login failed.', Port: 995, Secure(SSL): Yes, Server Error: 0x800CCC90, Error Number: 0x800CCC92 here is my main.cf file: Code: # 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 = wizzardry.ath.cx alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = 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 = mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = 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 = mysql:/etc/postfix/mysql-virtual_transports.cf virtual_create_maildirsize = yes virtual_mailbox_extended = yes virtual_mailbox_limit_maps = 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 $virt ual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $re located_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps content_filter = amavis:[ 127.0.0.1]:10024 receive_override_options = no_address_mappings and I have changed the /etc/courier/authdaemonrc file to both: Code: authmodulelist="authpam" and Code: authmodulelist="authmysql" neither work. post cut due to size limitations.. continued on next post..
postfix problems continued.. Here is a look at my mail.log file: Code: snip.. Oct 27 04:23:19 localhost amavis[21472]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan Oct 27 11:45:47 localhost postfix/smtpd[25378]: connect from S0106001346a8cfbd.cg.shawcable.net[ 68.146.194.17] Oct 27 11:46:24 localhost postfix/smtpd[25378]: 751223E82C4: client=S0106001346a8cfbd.cg.shawcable.net[68.146.194.17] Oct 27 11:46:33 localhost postfix/cleanup[25385]: 751223E82C4: message-id=< [email protected]> Oct 27 11:46:34 localhost postfix/qmgr[21239]: 751223E82C4: from=< [email protected]>, size=382, nrcpt=1 (queue active) Oct 27 11:46:40 localhost postfix/smtpd[25378]: disconnect from S0106001346a8cfbd.cg.shawcable.net[68.146.194.17] Oct 27 11:46:47 localhost postfix/smtpd[25392]: connect from localhost.localdomain[127.0.0.1] Oct 27 11:46:47 localhost postfix/smtpd[25392]: 8154C3E82F5: client=localhost.localdomain[127.0.0.1] Oct 27 11:46:47 localhost postfix/cleanup[25385]: 8154C3E82F5: message-id=< [email protected]> Oct 27 11:46:47 localhost postfix/qmgr[21239]: 8154C3E82F5: from=< [email protected]>, size=840, nrcpt=1 (queue active) Oct 27 11:46:47 localhost amavis[21475]: (21475-01) Passed, <[email protected]> -> < [email protected]>, Message-ID: <20Oct 27 04:23:19 localhost amavis[21471]: Module Net::DNS 0.48 Oct 27 04:23:19 localhost amavis[21471]: Module Net::SMTP 2.29 Oct 27 04:23:19 localhost amavis[21471]: Module Net::Server 0.87 Oct 27 04:23:19 localhost amavis[21471]: Module Time::HiRes 1.59 Oct 27 04:23:19 localhost amavis[21471]: Module Unix::Syslog 0.100 Oct 27 04:23:19 localhost amavis[21472]: Found $file at /usr/bin/file Oct 27 04:23:19 localhost amavis[21472]: No $arc, not using it Oct 27 04:23:19 localhost amavis[21472]: Found $gzip at /bin/gzip Oct 27 04:23:19 localhost amavis[21472]: Found $bzip2 at /usr/bin/bzip2 Oct 27 04:23:19 localhost amavis[21472]: No $lzop, not using it Oct 27 04:23:19 localhost amavis[21472]: No $lha, not using it Oct 27 04:23:19 localhost amavis[21472]: Found $unarj at /usr/bin/arj Oct 27 04:23:19 localhost amavis[21472]: Found $uncompress at /bin/uncompress Oct 27 04:23:19 localhost amavis[21472]: No $unfreeze, not using it Oct 27 04:23:19 localhost amavis[21472]: No $unrar, not using it Oct 27 04:23:19 localhost amavis[21472]: Found $zoo at /usr/bin/zoo Oct 27 04:23:19 localhost amavis[21472]: Found $cpio at /bin/cpio Oct 27 04:23:19 localhost amavis[21472]: Using internal av scanner code for (primary) Clam Antivirus-clamd Oct 27 04:23:19 localhost amavis[21472]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan Oct 27 11:45:47 localhost postfix/smtpd[25378]: connect from S0106001346a8cfbd.cg.shawcable.net[ 68.146.194.17] Oct 27 11:46:24 localhost postfix/smtpd[25378]: 751223E82C4: client=S0106001346a8cfbd.cg.shawcable.net[68.146.194.17] Oct 27 11:46:33 localhost postfix/cleanup[25385]: 751223E82C4: message-id=< [email protected]> Oct 27 11:46:34 localhost postfix/qmgr[21239]: 751223E82C4: from=< [email protected]>, size=382, nrcpt=1 (queue active) Oct 27 11:46:40 localhost postfix/smtpd[25378]: disconnect from S0106001346a8cfbd.cg.shawcable.net[68.146.194.17] Oct 27 11:46:47 localhost postfix/smtpd[25392]: connect from localhost.localdomain[127.0.0.1] Oct 27 11:46:47 localhost postfix/smtpd[25392]: 8154C3E82F5: client=localhost.localdomain[127.0.0.1] Oct 27 11:46:47 localhost postfix/cleanup[25385]: 8154C3E82F5: message-id=< [email protected]> Oct 27 11:46:47 localhost postfix/qmgr[21239]: 8154C3E82F5: from=< [email protected]>, size=840, nrcpt=1 (queue active) Oct 27 11:46:47 localhost amavis[21475]: (21475-01) Passed, <[email protected]> -> < [email protected]>, Message-ID: <20 [email protected]>, Hits: 2.111 Oct 27 11:46:47 localhost postfix/smtp[25386]: 751223E82C4: to=< [email protected]>, relay=127.0.0.1[127.0.0.1], delay=38, st atus=sent (250 2.6.0 Ok, id=21475-01, from MTA: 250 Ok: queued as 8154C3E82F5) Oct 27 11:46:47 localhost postfix/qmgr[21239]: 751223E82C4: removed Oct 27 11:46:47 localhost postfix/smtpd[25392]: disconnect from localhost.localdomain[127.0.0.1] Oct 27 11:46:47 localhost postfix/virtual[25395]: 8154C3E82F5: to=< [email protected]>, relay=virtual, delay=0, status=sent ( delivered to maildir) Oct 27 11:46:47 localhost postfix/qmgr[21239]: 8154C3E82F5: removed Oct 27 11:55:17 localhost pop3d-ssl: Connection, ip=[::ffff: 68.146.194.17] Oct 27 11:55:40 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff:68.146.194.17] Oct 27 11:55:40 localhost pop3d-ssl: Unexpected SSL connection shutdown. Oct 27 11:56:21 localhost pop3d-ssl: Connection, ip=[::ffff:68.146.194.17] Oct 27 11:56:26 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff:68.146.194.17 ] Oct 27 11:56:26 localhost pop3d-ssl: Unexpected SSL connection shutdown. and here is my mail.err file: Code: Oct 27 02:14:05 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff: 68.146.194.17] Oct 27 02:18:44 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff:68.146.194.17] Oct 27 02:19:25 localhost last message repeated 2 times Oct 27 02:36:50 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff: 68.146.194.17] Oct 27 02:37:15 localhost last message repeated 2 times Oct 27 02:38:22 localhost last message repeated 2 times Oct 27 11:55:40 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff: 68.146.194.17] Oct 27 11:56:26 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff:68.146.194.17] post cut due to size limitations continued in next post..
postfix problems continued.. and here is mail.info : Code: snip.. Oct 27 04:23:19 localhost amavis[21471]: Module Net::SMTP 2.29 Oct 27 04:23:19 localhost amavis[21471]: Module Net::Server 0.87 Oct 27 04:23:19 localhost amavis[21471]: Module Time::HiRes 1.59 Oct 27 04:23:19 localhost amavis[21471]: Module Unix::Syslog 0.100 Oct 27 04:23:19 localhost amavis[21472]: Found $file at /usr/bin/file Oct 27 04:23:19 localhost amavis[21472]: No $arc, not using it Oct 27 04:23:19 localhost amavis[21472]: Found $gzip at /bin/gzip Oct 27 04:23:19 localhost amavis[21472]: Found $bzip2 at /usr/bin/bzip2 Oct 27 04:23:19 localhost amavis[21472]: No $lzop, not using it Oct 27 04:23:19 localhost amavis[21472]: No $lha, not using it Oct 27 04:23:19 localhost amavis[21472]: Found $unarj at /usr/bin/arj Oct 27 04:23:19 localhost amavis[21472]: Found $uncompress at /bin/uncompress Oct 27 04:23:19 localhost amavis[21472]: No $unfreeze, not using it Oct 27 04:23:19 localhost amavis[21472]: No $unrar, not using it Oct 27 04:23:19 localhost amavis[21472]: Found $zoo at /usr/bin/zoo Oct 27 04:23:19 localhost amavis[21472]: Found $cpio at /bin/cpio Oct 27 04:23:19 localhost amavis[21472]: Using internal av scanner code for (primary) Clam Antivirus-clamd Oct 27 04:23:19 localhost amavis[21472]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan Oct 27 11:45:47 localhost postfix/smtpd[25378]: connect from S0106001346a8cfbd.cg.shawcable.net[68.146.194.17] Oct 27 11:46:24 localhost postfix/smtpd[25378]: 751223E82C4: client= S0106001346a8cfbd.cg.shawcable.net[68.146.194.17] Oct 27 11:46:33 localhost postfix/cleanup[25385]: 751223E82C4: message-id=< [email protected]> Oct 27 11:46:34 localhost postfix/qmgr[21239]: 751223E82C4: from=<[email protected]>, size=382, nrcpt=1 (queue active) Oct 27 11:46:40 localhost postfix/smtpd[25378]: disconnect from S0106001346a8cfbd.cg.shawcable.net[68.146.194.17] Oct 27 11:46:47 localhost postfix/smtpd[25392]: connect from localhost.localdomain [127.0.0.1] Oct 27 11:46:47 localhost postfix/smtpd[25392]: 8154C3E82F5: client=localhost.localdomain[127.0.0.1] Oct 27 11:46:47 localhost postfix/cleanup[25385]: 8154C3E82F5: message-id=< [email protected]> Oct 27 11:46:47 localhost postfix/qmgr[21239]: 8154C3E82F5: from=< [email protected]>, size=840, nrcpt=1 (queue active) Oct 27 11:46:47 localhost amavis[21475]: (21475-01) Passed, <[email protected]> -> < [email protected]>, Message-ID: <20 [email protected]>, Hits: 2.111 Oct 27 11:46:47 localhost postfix/smtp[25386]: 751223E82C4: to=< [email protected]>, relay=127.0.0.1[127.0.0.1], delay=38, st atus=sent (250 2.6.0 Ok, id=21475-01, from MTA: 250 Ok: queued as 8154C3E82F5) Oct 27 11:46:47 localhost postfix/qmgr[21239]: 751223E82C4: removed Oct 27 11:46:47 localhost postfix/smtpd[25392]: disconnect from localhost.localdomain[127.0.0.1] Oct 27 11:46:47 localhost postfix/virtual[25395]: 8154C3E82F5: to=< [email protected]>, relay=virtual, delay=0, status=sent ( delivered to maildir) Oct 27 11:46:47 localhost postfix/qmgr[21239]: 8154C3E82F5: removed Oct 27 11:55:40 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff: 68.146.194.17] Oct 27 11:56:26 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff:68.146.194.17] and here is a snip of my syslog file: Code: snip.. Oct 27 09:59:51 localhost -- MARK -- Oct 27 10:09:01 localhost /USR/SBIN/CRON[25315]: (root) CMD ( [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/ usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm) Oct 27 10:17:01 localhost /USR/SBIN/CRON[25323]: (root) CMD ( run-parts --report /etc/cron.hourly) Oct 27 10:39:01 localhost /USR/SBIN/CRON[25326]: (root) CMD ( [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/ usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm) Oct 27 10:59:51 localhost -- MARK -- Oct 27 11:09:01 localhost /USR/SBIN/CRON[25334]: (root) CMD ( [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/ usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm) Oct 27 11:17:01 localhost /USR/SBIN/CRON[25342]: (root) CMD ( run-parts --report /etc/cron.hourly) Oct 27 11:39:01 localhost /USR/SBIN/CRON[25360]: (root) CMD ( [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/ usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm) Oct 27 11:45:47 localhost postfix/smtpd[25378]: connect from S0106001346a8cfbd.cg.shawcable.net[68.146.194.17] Oct 27 11:46:24 localhost postfix/smtpd[25378]: 751223E82C4: client= S0106001346a8cfbd.cg.shawcable.net[68.146.194.17] Oct 27 11:46:33 localhost postfix/cleanup[25385]: 751223E82C4: message-id=< [email protected]> Oct 27 11:46:34 localhost postfix/qmgr[21239]: 751223E82C4: from=<[email protected]>, size=382, nrcpt=1 (queue active) Oct 27 11:46:40 localhost postfix/smtpd[25378]: disconnect from S0106001346a8cfbd.cg.shawcable.net[68.146.194.17] Oct 27 11:46:47 localhost postfix/smtpd[25392]: connect from localhost.localdomain [127.0.0.1] Oct 27 11:46:47 localhost postfix/smtpd[25392]: 8154C3E82F5: client=localhost.localdomain[127.0.0.1] Oct 27 11:46:47 localhost postfix/cleanup[25385]: 8154C3E82F5: message-id=< [email protected]> Oct 27 11:46:47 localhost postfix/qmgr[21239]: 8154C3E82F5: from=< [email protected]>, size=840, nrcpt=1 (queue active) Oct 27 11:46:47 localhost amavis[21475]: (21475-01) Passed, <[email protected]> -> < [email protected]>, Message-ID: <20 [email protected]>, Hits: 2.111 Oct 27 11:46:47 localhost postfix/smtp[25386]: 751223E82C4: to=< [email protected]>, relay=127.0.0.1[127.0.0.1], delay=38, st atus=sent (250 2.6.0 Ok, id=21475-01, from MTA: 250 Ok: queued as 8154C3E82F5) Oct 27 11:46:47 localhost postfix/qmgr[21239]: 751223E82C4: removed Oct 27 11:46:47 localhost postfix/smtpd[25392]: disconnect from localhost.localdomain[127.0.0.1] Oct 27 11:46:47 localhost postfix/virtual[25395]: 8154C3E82F5: to=< [email protected]>, relay=virtual, delay=0, status=sent ( delivered to maildir) Oct 27 11:46:47 localhost postfix/qmgr[21239]: 8154C3E82F5: removed Oct 27 11:55:17 localhost pop3d-ssl: Connection, ip=[::ffff: 68.146.194.17] Oct 27 11:55:40 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff:68.146.194.17] Oct 27 11:55:40 localhost pop3d-ssl: Unexpected SSL connection shutdown. Oct 27 11:56:21 localhost pop3d-ssl: Connection, ip=[::ffff:68.146.194.17] Oct 27 11:56:26 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff:68.146.194.17 ] Oct 27 11:56:26 localhost pop3d-ssl: Unexpected SSL connection shutdown. I believe I have done everything right and have installed Debian systems a few times now, actually back from before woody, woody, and now sarge. I have only had this problem with sarge, if anybody can possibly tell me what may be wrong I would love to get this finished and put this behind me, for it's driving me crazy. Oh yes my mysql is using the ENCRYPT mode for password, but there is no log in my mysql err or log fikles, which leads me to believe something is wrong with my mysql authentication, but I am using authpam now. and help is appreciated. sorry for the post length I just wanted to give a good bacjground of what I have done. regards, ru4r34l
well I decided to give it one more try, paying a little more attention to the fine details and it seems my issues were a simple typo. Actually I could not find or repeat my error but re-configuring the mail system by hand and some sane checking along the way has made my pop3 and pop3s daemons runing clean. Thanks for the response Falko, and again very nice and insightfull tutorials regards, ru4r34l