few days ago i rented renal server for coninience .
and i made mail server.

but i cannot send mail although i receive mail.

i think problems is in postfix setting .
please point out problems .


 /etc/postfix/main.cf
---------------------
myhostname = abc.vs.sakura.ne.jp
mydomain = vs.sakura.ne.jp
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname localhost.$mydomain
home_mailbox = Maildir/
relayhost =
mynetworks = 127.0.0.0/8 160.16.123.123
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
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/isp_auth
smtp_sasl_security_options = noanonymous
disable_dns_lookups = yes


/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


/etc/pf.conf
--------------------
ext_if="vio0"
tcp_services="{ 22, 25, 80, 143, 587, 993 }"  # <-submisson port
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  }
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


/etc/hosts
------------
127.0.0.1       localhost
::1             localhost
160.16.114.201  abc.vs.sakura.ne.jp abc
vs.sakura.ne.jp abc. 300  MX     10 abc.vs.sakura.ne.jp tk2-233-26197.
abc                    300  A      160.16.114.201


/etc/resolv.conf
------------------
lookup file bind
nameserver 8.8.8.8


in mailer ,sylpheed
----------------------
smtp port ;587
imap4 port:993
erro is 'cannot connect SMTP server: abc.vs.sakura.ne.jp:587'

tail /var/log/mail
---------------------
Jun 23 13:09:41 abc postfix/smtpd[5923]: connect from p123.akita.ocn.ne.jp
[210.789.321.123]


------
regards

Reply via email to