Установлен postfix2 с saslauth и tsl, как указано в rtfm. Все работает.
Но вот с courier-imap - беда. Не может почту взять.
Вот что выдает:
telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.com.
Escape character is '^]'.
+OK Hello there.
user user
+OK Password required.
pass password
-ERR Maildir: No such file or directory
Connection closed by foreign host.
Конфиг мастера
smtp inet n n n - - smtpd
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
Конфиг постфикса:
myhostname = xxx.com
mydomain = xxx.com
myorigin = $mydomain
smtpd_banner = $myhostname mail server
smtpd_helo_required = yes
smtpd_delay_reject = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
mydestination = $myhostname, localhost.$mydomian, $mydomain
relay_domains = $mydestination, 127.0.0.1
mynetworks = 127.0.0.1
maps_rbl_domains = relays.ordb.org
maps_rbl_reject_code = 554
smtpd_recipient_restrictions = permit_mynetworks
check_client_access hash:/etc/postfix/access
permit_sasl_authenticated
reject_unauth_destination
reject_rbl_client list.dsbl.org
reject_rbl_client relays.ordb.org
reject_rbl_client dynablock.wirehub.net
reject_rbl_client blackholes.wirehub.net
reject_rbl_client dnsbl.njabl.org
smtpd_client_restrictions = reject_rbl_client, permit_sasl_authenticated
check_client_access hash:/etc/postfix/client_access
reject_unauth_pipelining
smtpd_sender_restrictions = reject_invalid_hostname, permit_sasl_authenticated
reject_non_fqdn_sender, hash:/etc/postfix/access
reject_unknown_sender_domain
sender_canonical_maps = hash:/etc/postfix/canonical
recipient_canonical_maps = hash:/etc/postfix/canonical-receive
header_checks = regexp:/etc/postfix/header_checks
body_checks = regexp:/etc/postfix/body_checks
unknown_hostname_reject_code = 554
unknown_client_reject_code = 450
virtual_mailbox_base = /var/mail/virtual
relayhost =
masquerade_domains = $mydomain
virtual_maps = hash:/etc/postfix/virtual
mydestination = $myhostname, localhost.$mydomain, $mydomain, /etc/postfix/localdomains
smtp_use_tls = yes
smtp_tls_key_file = /usr/local/share/courier-imap/pop3d.pem
smtp_tls_cert_file = $smtp_tls_key_file
smtpd_use_tls = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtpd_tls_key_file = /usr/local/share/courier-imap/pop3d.pem
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_CAfile = $smtpd_tls_key_file
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 450
mail_spool_directory = /var/mail
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = no
Конфиг courier :
cat /etc/courier-imap/pop3d.cnf
RANDFILE = /usr/local/share/courier-imap/pop3d.rand
[ req ]
default_bits = 4096
encrypt_key = yes
distinguished_name = req_dn
x509_extensions = cert_type
prompt = no
[ req_dn ]
C=US
ST=NY
L=New York
O=Courier Mail Server
OU=Automatically-generated POP3 SSL key
CN=Envisionext.COM
emailAddress=postmaster@envisionext.com
[ cert_type ]
nsCertType = server
cat /etc/courier-imap/pop3d | grep -v '#'
PIDFILE=/var/run/pop3d.pid
MAXDAEMONS=40
MAXPERIP=4
AUTHMODULES="authdaemon"
AUTHMODULES_ORIG="authdaemon"
DEBUG_LOGIN=0
POP3AUTH="LOGIN PLAIN"
POP3AUTH_ORIG="LOGIN PLAIN"
POP3AUTH_TLS="LOGIN PLAIN"
POP3AUTH_TLS_ORIG="LOGIN PLAIN"
PORT=110
ADDRESS=0
TCPDOPTS="-nodnslookup -noidentlookup"
POP3DSTART=YES