ru4r34l
27th October 2006, 16:53
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:
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:< admin@wizzardry.ath.cx>
250 Ok
rcpt to:<please@please.work>
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:
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:
Return-Path: <admin@wizzardry.ath.cx>
X-Original-To: please@please.work
Delivered-To: please@please.work
Received: from localhost (localhost.localdomain [127.0.0.1])
by wizzardry.ath.cx (Postfix) with ESMTP id 8154C3E82F5
for <please@please.work>; 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 <please@please.work >;
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 <please@please.work >; Fri, 27 Oct 2006 05:46:09 -0600 (MDT)
Message-Id: <20061027114609.751223E82C4@wizzardry.ath.cx>
Date: Fri, 27 Oct 2006 05:46:09 -0600 (MDT)
From: admin@wizzardry.ath.cx
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 please@please.work, 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:
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:
# 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:
authmodulelist="authpam"
and
authmodulelist="authmysql"
neither work.
post cut due to size limitations.. continued on next post.. :)
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:
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:< admin@wizzardry.ath.cx>
250 Ok
rcpt to:<please@please.work>
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:
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:
Return-Path: <admin@wizzardry.ath.cx>
X-Original-To: please@please.work
Delivered-To: please@please.work
Received: from localhost (localhost.localdomain [127.0.0.1])
by wizzardry.ath.cx (Postfix) with ESMTP id 8154C3E82F5
for <please@please.work>; 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 <please@please.work >;
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 <please@please.work >; Fri, 27 Oct 2006 05:46:09 -0600 (MDT)
Message-Id: <20061027114609.751223E82C4@wizzardry.ath.cx>
Date: Fri, 27 Oct 2006 05:46:09 -0600 (MDT)
From: admin@wizzardry.ath.cx
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 please@please.work, 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:
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:
# 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:
authmodulelist="authpam"
and
authmodulelist="authmysql"
neither work.
post cut due to size limitations.. continued on next post.. :)