Hi,all.
reciprocally i can send mail , but i can not recieve mail with sylpheed .
all that i do is the next.
1) /usr/local/sbin/dovecot-mkcert.sh
2)/etc/postfix/main.cf
---------------------
myhostname = abc.vs.sakura.ne.jp
mydomain = vs.sakura.ne.jp
myorigin = $myhostname
mydestination = $myhostname localhost.$myhostname
inet_interfaces = all
home_mailbox = Maildir/
mynetworks = 127.0.0.0/8
relay_domains = $mydestination
relayhost =
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/mansample_directory = /etc/postfix
readme_directory = /usr/local/share/doc/postfix/readme
3)/etc/postfix/master.cf
-----------------------
smtp inet n - - - - smtpd
submission inet n - - - - smtpd
pickup unix n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr unix n - - 300 1 qmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
4) dovecot.conf
------------------
protocols = imap
listen = *
dict {
}
!include conf.d/*.conf
!include_try local.conf
5)10-auth.conf
----------------
auth_mechanisms = plain login
disable_plaintext_auth = no
!include auth-system.conf.ext
6)10-mail.conf
--------------
mail_location = maildir:~/Maildir
namespace inbox {
inbox = yes
}
mmap_disable = yes
first_valid_uid = 1000
mail_plugin_dir = /usr/local/lib/dovecot
mbox_write_locks = fcntl
7) 10-ssl.conf
----------------
ssl = no
ssl_cert = </etc/ssl/dovecotcert.pem
ssl_key = </etc/ssl/private/dovecot.pem
8)pf.conf
---------------
ext_if="vio0"
tcp_services="{ 22, 80, 143, 587 }"
icmp_types="echoreq"
set block-policy return
set loginterface $ext_if
set skip on lo
set reassemble yes no-df
block in log
pass out quick
antispoof quick for { lo }
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
9)and then
/etc/rc.d/postfix restart
/etc/rc.d/dovecot restart
10)sylpheed
smtp 587
imap 143
but i can send mail , but cannot recieve mail. A)# netstat -a | grep -w
LISTEN is next
tcp 0 0 *.ssh *.* LISTEN
tcp 0 0 *.submissi *.* LISTEN
tcp 0 0 *.imaps *.* LISTEN
tcp 0 0 *.imap *.* LISTEN
tcp 0 0 *.smtp *.* LISTEN
tcp6 0 0 *.smtp *.* LISTEN
tcp6 0 0 *.submissi *.* LISTEN
tcp6 0 0 *.ssh *.* LISTEN
it seems OK.
B)as homework
# postconf -n
command_directory = /usr/local/sbin
config_directory = /etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/postfix
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
home_mailbox = Maildir/
html_directory = /usr/local/share/doc/postfix/html
inet_interfaces = all
inet_protocols = all
mail_owner = _postfix
mailq_path = /usr/local/sbin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname localhost.$myhostname
mydomain = vs.sakura.ne.jp
myhostname = abc.vs.sakura.ne.jpmyorigin = $myhostname
newaliases_path = /usr/local/sbin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix/readme
relay_domains = $mydestination
relayhost =
sample_directory = /etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = _postdrop
unknown_local_recipient_reject_code = 550
and
postconf -Mf
smtp inet n - - - - smtpd
submission inet n - - - - smtpd
pickup unix n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr unix n - - 300 1 qmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
C)
# cat /var/log/maillog
Jun 24 20:00:01 abc newsyslog[2762]: logfile turned over
Jun 24 20:01:38 abc postfix/anvil[6614]: statistics: max connection rate
1/60s
for (submission:1.2.3.4) at Jun 24 19:58:17
Jun 24 20:01:38 abc postfix/anvil[6614]: statistics: max connection count 1
for
(submission:1.2.3.4) at Jun 24 19:58:17
Jun 24 20:01:38 abc postfix/anvil[6614]: statistics: max cache size 1 at
Jun 24
19:58:17
it doses not tell about dovecot.
some thing is wrong.
but i cannot know it .
i am glad if someone show his settings about files of dovecot.
------------
regards