thanks for skinner. owing to you , i manage to send mail at remote PC ,
1) dynamic dns' mx problem i set mx following http://www.mhserv.info/co5/mydns.php . (sorry , real name is not a.mydns.jp , but a?????.mydns.jp .) so # dig a.mydns.jp MX +short -------------------------------- 10 a.mydns.jp. # dig a.mydns.jp MX ------------------------------- ; <<>> DiG 9.4.2-P2 <<>> a.mydns.jp MX ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49333 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.mydns.jp. IN MX ;; ANSWER SECTION: a.mydns.jp. 285 IN MX 10 a.mydns.jp. ;; Query time: 104 msec ;; SERVER: 192.168.100.254#53(192.168.100.254) ;; WHEN: Wed May 27 02:39:36 2015 ;; MSG SIZE rcvd: 50 # host a.mydns.jp ----------------------- a.mydns.jp has address 114.22.25.247 a.mydns.jp mail is handled by 10 a.mydns.jp. 2) /etc/dnsmasq.conf ----------------- listen-address=192.168.11.1 # Example IP interface=bge0 dhcp-range=192.168.11.10,192.168.11.12,12h bind-interfaces3) Outbound port 25 Blocking problem how to solve it 3-1) /etc/pf.conf --------------------- ext_if="run0" int_if="bge0" tcp_services="{ 22, 80, 143, 587 }" #<----- icmp_types="echoreq" set block-policy return set loginterface $ext_if set skip on lo match out on $ext_if inet from ($int_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 3-2) follow http://vine.1-max.net/postfix-OP25B.html namely /etc/postfix/main.cf -------------------------------- myhostname = a.mydns.jp 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 # -----------> relayhost = [smtp.gmobb.jp]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/isp_auth smtp_sasl_security_options = noanonymous #<----------- /etc/postfix/isp_auth --------------------- [smtp.gmobb.jp]:587 [email protected]:S???? /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 thanks again for OpenBSD fellow's support. ------------ regards tuyosi takesima

