Hi all
now it is hard to build mail server using postfix and dovecot for me .
previously i can do it postpix and pop with ease.
now i only can do on mail server
telnet a.mydns.jp 25
Trying 192.168.100.101...
Connected to a.mydns.jp.
Escape character is '^]'.
220 a.mydns.jp ESMTP Postfix
but
# telnet a.mydns.jp 143
Trying 192.168.100.101...
Connected to a.mydns.jp.
Escape character is '^]'.
Connection closed by foreign host.
~~~~~~~~~~~~~
so , my setting files have mistakes.
please give me some advices.
i only aim simple setting because of only personal use .
/etc/postfix/main.cf
---------------------------
myhostname = a.mydns.jp <--------- i use dnynamic dns .
mydomain = mydns.jp
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname localhost.$mydomain
home_mailbox = Maildir/
mynetworks = 192.168.100.0/24, 127.0.0.0/8
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/postfix
mail_owner = _postfix
inet_protocols = all
unknown_local_recipient_reject_code = 550
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/sbin/newaliases
mailq_path = /usr/local/sbin/mailq
setgid_group = _postdrop
html_directory = /usr/local/share/doc/postfix/html
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = /usr/local/share/doc/postfix/readme
/etc/dovecot/dovecot.conf
-------------------------
protocols = imap
listen = *
mail_location = maildir:~/Maildir
/etc/dovecot/conf.d/10-auth.conf
-------------------------
disable_plaintext_auth = no
auth_mechanisms = plain
!include auth-system.conf.ext
/etc/pf.conf
---------------------
ext_if="run0"
int_if="bge0"
tcp_services="{ 22, 80, 25, imap }"
icmp_types="echoreq"
set block-policy return
set loginterface $ext_if
set skip on lo
match out on $ext_if inet from !($ext_if:network) to any nat-to
($ext_if:0)
set reassemble yes no-df
block in log
pass out quick
antispoof quick for { lo $int_if }
pass in on $ext_if inet proto tcp from any to ( $ext_if:0 ) port
$tcp_services
pass in inet proto icmp all icmp-type $icmp_types
pass in on $int_if
pass in on $ext_if proto tcp to port 21
pass in on $ext_if proto tcp to port 49151:5555
/etc/dnsmasq.conf <- is dns not nessesary ?
----------------
listen-address=127.0.0.1
listen-address=192.168.11.1
mx-host=mydns.jp, a.mydns.jp, 50
to start mail server ,
----------------
cp /etc/resolv.conf-127 /etc/resolv.conf
/etc/rc.d/dnsmasq restart
/etc/rc.d/postfix restart
/etc/rc.d/pop3d stop
/etc/rc.d/dovecot restart
/etc/resolv.conf-127
-------------------
nameserver 127.0.0.1
nameserver 8.8.8.8
lookup file bind
i wonder 2 ponts.
1)
in /usr/local/share/doc/dovecot/wiki/PasswordDatabase.PAM.txt
but no example about openBSD .
2)
in /etc/dovecot/conf.d/auth-system.conf.ext
# PAM authentication. Preferred nowadays by most systems.
# PAM is typically used with either userdb passwd or userdb static.
# REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
# authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
i donot know how to make /etc/pam.d/dovecot
------------
regards