cannot send mail

2017-10-08 Thread Timothy Marion
Hi All,

I am able to receive mail but I cannot send mail. Could anyone point me in
the right direction?

Thanks,

Tim

# $OpenBSD: smtpd.conf,v 1.9 2016/05/03 18:43:45 jung Exp $


pki jupiter.timothymarion.com certificate "/etc/letsencrypt/live/
www.timothymarion.com/fullchain.pem"
pki jupiter.timothymarion.com key "/etc/letsencrypt/live/
www.timothymarion.com/privkey.pem"

table aliases file:/etc/mail/aliases

listen on all

accept from any for domain "timothymarion.com" alias deliver to mbox
accept for local alias deliver to mbox
accept from local for any relay


/var/log/mailog

Oct 8 23:04:50 jupiter smtpd[21640]: 0cd1353692397daf smtp event=connected
address=14.177.236.10 host=static.vnpt.vn
Oct 8 23:04:51 jupiter smtpd[21640]: 0cd1353692397daf smtp
event=failed-command address=14.177.236.10 host=static.vnpt.vn
command="AUTH LOGIN" result="503 5.5.1 Invalid command: Command not
supported"
Oct 8 23:04:51 jupiter smtpd[21640]: 0cd1353692397daf smtp event=closed
address=14.177.236.10 host=static.vnpt.vn reason=quit>br>


Re: cannot send mail

2017-10-08 Thread Edgar Pettijohn
On Sun, Oct 08, 2017 at 05:16:11PM -0400, Timothy Marion wrote:
> Hi All,
> 
> I am able to receive mail but I cannot send mail. Could anyone point me in
> the right direction?
> 
> Thanks,
> 
> Tim
> 
> # $OpenBSD: smtpd.conf,v 1.9 2016/05/03 18:43:45 jung Exp $
> 
> 
> pki jupiter.timothymarion.com certificate "/etc/letsencrypt/live/
> www.timothymarion.com/fullchain.pem"
> pki jupiter.timothymarion.com key "/etc/letsencrypt/live/
> www.timothymarion.com/privkey.pem"
> 
> table aliases file:/etc/mail/aliases
table credentials file:/etc/mail/creds

look at table(5) for details, but basically creds would look like
user1   password (using smtpctl to create the encrypted password)
> 
> listen on all
I prefer listing individually
listen on em0 port 25 tls pki jupiter.whatever
listen on em0 port 587 tls pki jupiter.something auth 
> 
> accept from any for domain "timothymarion.com" alias deliver to mbox
accept from any for domain "timothymarion.com" alias  deliver to mbox
> accept for local alias deliver to mbox
accept for local alias  deliver to mbox
> accept from local for any relay
> 
> 
> /var/log/mailog
> 
> Oct 8 23:04:50 jupiter smtpd[21640]: 0cd1353692397daf smtp event=connected
> address=14.177.236.10 host=static.vnpt.vn
> Oct 8 23:04:51 jupiter smtpd[21640]: 0cd1353692397daf smtp
> event=failed-command address=14.177.236.10 host=static.vnpt.vn
> command="AUTH LOGIN" result="503 5.5.1 Invalid command: Command not
> supported"
> Oct 8 23:04:51 jupiter smtpd[21640]: 0cd1353692397daf smtp event=closed
> address=14.177.236.10 host=static.vnpt.vn reason=quit>br>



Re: cannot send mail

2017-10-08 Thread Krzysztof Strzeszewski

Hi,
see this:

-

https://www.openbsd.org/faq/upgrade62.html

*smtpd.conf.* The secure keyword is not valid anymore in listen 
directives in smtpd.conf(5) 
<https://man.openbsd.org/OpenBSD-6.2/smtpd.conf>. Users are advised to 
replace existing listen secure directives with two separate tls and 
smtps listeners, i.e., a line like


  listen on $iface secure pki $pki

has to be replaced with

  listen on $iface tls pki $pki
  listen on $iface smtps pki $pki

Relaying syntax is not affected by this change.
-
end
-
--- Treść przekazanej wiadomości ---
Temat:  Re: opensmtpd
Data:   Tue, 24 Nov 2015 17:32:01 +0100
Nadawca:Gianluca D.Muscelli 
Adresat:Krzysztof Strzeszewski , misc@openbsd.org



This is my config file…with Maildir /var/mail/ and DKIMproxy

$ cat /etc/mail/smtpd.conf
queue compression
queue encryption key xxx ->(your_key_numbers)

table aliases db:/etc/mail/aliases.db
table domains file:/etc/mail/domains
table users file:/etc/mail/users
table blacklist-recipients file:/etc/mail/blacklist-recipients

pki mail.gianlucamuscelli.it key "/etc/ssl/private/mail.example.it.key"
pki mail.gianlucamuscelli.it certificate "/etc/ssl/mail.example.it.crt"

max-message-size 50M
  
listen on egress pki mail.example.it tls-require hostname example.it

listen on egress pki mail.example.it smtps auth hostname example.it

accept from any \
recipient ! \
for domain  \
virtual  \
deliver to maildir "/var/mail/%{user.username}/Inbox"
accept \
recipient ! \
for local alias  \
deliver to maildir "/var/mail/%{user.username}/Inbox"

listen on lo0 hostname example.it
listen on lo0 port 10028 tag DKIM hostname example.it

accept tagged DKIM \
for any \
relay \
hostname example.it
accept from local \
for any \
relay via smtp://127.0.0.1:10027


Gianluca D.Muscelli
i...@gianlucamuscelli.it
-

Regards,
Krzych

Il giorno 24/nov/2015, alle ore 17:13, Krzysztof Strzeszewski 
 ha scritto:


Hello,

when I use in smtpd.conf:
.
..
...
listen on egress secure pki nroot.pl auth 
...
..
.

mail sending to me can't reach:

smtp-in: Failed command on session 14529d46237222d5: "MAIL
FROM: SIZE=1599" =>530 5.5.1 Invalid command: Must issue
an AUTH command first


when I use in smtpd.conf

.
..
...
listen on egress secure pki nroot.pl
...
..
.


is ok, mail from world can reach to me, but then smtpd server is open
for send mail for each.
How to use auth for only sending mail from my client?


Regards,
Krzych


my smtpd.conf:
#
listen on lo0

table aliases db:/etc/mail/aliases.db
table secrets db:/etc/mail/secrets.db
pki exaple.com certificate "/etc/ssl/mail.crt"
pki exaple.com key "/etc/ssl/private/mail.key"

listen on egress secure pki exaple.com auth 
accept from any for domain "exaple.com" alias  deliver to maildir

accept for local alias  userbase  deliver to maildir
accept from local for any relay
accept from any for any relay
#





W dniu 08.10.2017 o 23:16, Timothy Marion pisze:

Hi All,

I am able to receive mail but I cannot send mail. Could anyone point me in
the right direction?

Thanks,

Tim

# $OpenBSD: smtpd.conf,v 1.9 2016/05/03 18:43:45 jung Exp $


pki jupiter.timothymarion.com certificate "/etc/letsencrypt/live/
www.timothymarion.com/fullchain.pem"
pki jupiter.timothymarion.com key "/etc/letsencrypt/live/
www.timothymarion.com/privkey.pem"

table aliases file:/etc/mail/aliases

listen on all

accept from any for domain "timothymarion.com" alias deliver to mbox
accept for local alias deliver to mbox
accept from local for any relay


/var/log/mailog

Oct 8 23:04:50 jupiter smtpd[21640]: 0cd1353692397daf smtp event=connected
address=14.177.236.10 host=static.vnpt.vn
Oct 8 23:04:51 jupiter smtpd[21640]: 0cd1353692397daf smtp
event=failed-command address=14.177.236.10 host=static.vnpt.vn
command="AUTH LOGIN" result="503 5.5.1 Invalid command: Command not
supported"
Oct 8 23:04:51 jupiter smtpd[21640]: 0cd1353692397daf smtp event=closed
address=14.177.236.10 host=static.vnpt.vn reason=quit>br>





mail server on rental server ,cannot send mail

2015-06-22 Thread Tuyosi Takesima
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  #<-
pickupunix  n   -   -   60  1   pickup
cleanup   unix  n   -   -   -   0   cleanup
qmgr  unix  n   -   -   300 1   qmgr
tlsmgrunix  -   -   -   1000?   1   tlsmgr
rewrite   unix  -   -   -   -   -   trivial-rewrite
bounceunix  -   -   -   -   0   bounce
defer unix  -   -   -   -   0   bounce
trace unix  -   -   -   -   0   bounce
verifyunix  -   -   -   -   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
scacheunix  -   -   -   -   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.
abc300  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



Re: mail server on rental server ,cannot send mail

2015-06-22 Thread Matthew Martin
On 6/22/15, Tuyosi Takesima  wrote:
> 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 .

If only there were an alternative. Something relatively simple with an
easily understood configuration and a suitable license... I guess a
guy can dream.

> please point out problems .

You have

> mynetworks = 127.0.0.0/8 160.16.123.123

And then...

> Jun 23 13:09:41 abc postfix/smtpd[5923]: connect from p123.akita.ocn.ne.jp
> [210.789.321.123]

As far as I can tell you're only allowing localhost or 160.16.123.123
to talk to postfix, and that isn't the address trying to talk to it. I
don't see how 210.789.321.123 could even exist.



Re: mail server on rental server ,cannot send mail

2015-06-22 Thread Tuyosi Takesima
thanks  Matthew Martin.
you give me important hints .

i rewrite main.cf

/etc/postfix/main.cf
myhostname = abc.vs.sakura.ne.jp
mydomain = vs.sakura.ne.jp
myorigin = $myhostname
inet_interfaces = all
home_mailbox = Maildir/
relay_domains = $mydestination #<-
relayhost = #<-
mynetworks = 127.0.0.0/8#<-
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain #<-
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

then i can send the srver via KEITAI(pocket phone ?)
but i cannot send mail by PC .

i guess the cause of not sending  mail is company's router

beause
/var/log/maillog says
-
Jun 23 15:15:47 abc postfix/smtpd[20788]: lost connection
after UNKNOWN from p123.akita.ocn.ne.jp[123.189.32.456]

Jun 23 15:15:47 abc postfix/smtpd[20788]: disconnect from
p123.akita.ocn.ne.jp[123.189.32.456] unknown=0/1
commands=0/1

Jun 23 15:16:32 abc dovecot: imap-login: Login:
user=,
method=PLAIN, rip=123.189.32.456, lip=160.16.114.201, mpid=16847, TLS,
session=

---
regards



Re: mail server on rental server ,cannot send mail

2015-06-23 Thread Matthew Martin
On 6/23/15, Tuyosi Takesima  wrote:
> thanks  Matthew Martin.
> you give me important hints .
>
> i rewrite main.cf
> 
> /etc/postfix/main.cf
> myhostname = abc.vs.sakura.ne.jp
> mydomain = vs.sakura.ne.jp
> myorigin = $myhostname
> inet_interfaces = all
> home_mailbox = Maildir/
> relay_domains = $mydestination #<-
> relayhost = #<-
> mynetworks = 127.0.0.0/8#<-
> mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain #<-
> 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
>
> then i can send the srver via KEITAI(pocket phone ?)
> but i cannot send mail by PC .
>
> i guess the cause of not sending  mail is company's router
>
> beause
> /var/log/maillog says
> -
> Jun 23 15:15:47 abc postfix/smtpd[20788]: lost connection
> after UNKNOWN from p123.akita.ocn.ne.jp[123.189.32.456]
>
> Jun 23 15:15:47 abc postfix/smtpd[20788]: disconnect from
> p123.akita.ocn.ne.jp[123.189.32.456] unknown=0/1
> commands=0/1
>
> Jun 23 15:16:32 abc dovecot: imap-login: Login:
> user=,
> method=PLAIN, rip=123.189.32.456, lip=160.16.114.201, mpid=16847, TLS,
> session=
>
> ---
> regards
>
>

I really don't know anything about Postfix. And right now their
webserver seems down and I can't see their documentation. Have you
tried OpenSMTPD? :)

p123.akita.ocn.ne.jp's IP is different now, and still seems
impossible. .456? I'm not familiar enough with postfix/sasl/etc... to
help with anything else, but that IP can't be correct. Octets only go
up to 255. I'd see what's going on with that before looking at
anything else.



Re: mail server on rental server ,cannot send mail

2015-06-23 Thread Tuyosi Takesima
sorry , i hide real adress and name for my privacy .

Vice versa at my home , i cansentmail
  but cannot recieve mail .

i  first doubt  dovecot setting  .

 /etc/dovecot/dovecot.conf

--
protocols = imap
listen = *
!include conf.d/*.conf


 /etc/dovecot/conf.d/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


 /etc/dovecot/conf.d/10-ssl.conf

ssl = no   # < Correction
ssl_cert = http://www.rbl.jp/svcheck.php .
it says only 'Error: Can't connect to abc.vs.sakura.ne.jp'

it shows that the problem may be port closing .

so i nmap my home address.

result is
PORT   STATESERVICE
22/tcp open ssh
25/tcp filtered smtp
80/tcp open http

namely ports 143 doesnot open. (so cannot revieve)
ports 587 also doesnot open.  (but can send  ?   )


i set wifi router at home
1) port forwarding
1   192.168.100.101 22 - 22 TCP&UDP  effective
2   192.168.100.101 80 - 80 TCP&UDP  effective
3   192.168.100.101 143 - 143   TCP&UDP  effective
4   192.168.100.101 587 - 587   TCP&UDP  effective
5   192.168.100.101 993 - 993   TCP&UDP  effective

2)pfctl
-sr
pass in on run0 inet proto tcp from any to (run0:0) port = 22 flags S/SA
pass in on run0 inet proto tcp from any to (run0:0) port = 80 flags S/SA
pass in on run0 inet proto tcp from any to (run0:0) port = 143 flags S/SA
pass in on run0 inet proto tcp from any to (run0:0) port = 587 flags S/SA
pass in on run0 inet proto tcp from any to (run0:0) port = 993 flags S/SA

are there another point  about opening ports ?

i  think opensmtpd and postfix and sendmail have the power of sending mail .

--
regards



Re: mail server on rental server ,cannot send mail

2015-06-23 Thread Edgar Pettijohn

On 06/22/15 23:15, Tuyosi Takesima wrote:

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


The first thing the postfix guys will tell you is to try without chroot.



/etc/postfix/master.cf
---
smtp  inet  n   -   -   -   -   smtpd
submission inet n   -   -   -   -   smtpd  #<-
pickupunix  n   -   -   60  1   pickup
cleanup   unix  n   -   -   -   0   cleanup
qmgr  unix  n   -   -   300 1   qmgr
tlsmgrunix  -   -   -   1000?   1   tlsmgr
rewrite   unix  -   -   -   -   -   trivial-rewrite
bounceunix  -   -   -   -   0   bounce
defer unix  -   -   -   -   0   bounce
trace unix  -   -   -   -   0   bounce
verifyunix  -   -   -   -   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
scacheunix  -   -   -   -   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.
abc300  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




Re: mail server on rental server ,cannot send mail

2015-06-23 Thread carlos albino garcia grijalba
Log when sending and receiving to see what is happening i have postfix,
dovecot, amavisd and works ok!

> Date: Tue, 23 Jun 2015 05:22:36 -0500
> Subject: Re: mail server on rental server ,cannot send mail
> From: matt.a.mar...@gmail.com
> To: nakajin.fu...@gmail.com
> CC: misc@openbsd.org
>
> On 6/23/15, Tuyosi Takesima  wrote:
> > thanks  Matthew Martin.
> > you give me important hints .
> >
> > i rewrite main.cf
> > 
> > /etc/postfix/main.cf
> > myhostname = abc.vs.sakura.ne.jp
> > mydomain = vs.sakura.ne.jp
> > myorigin = $myhostname
> > inet_interfaces = all
> > home_mailbox = Maildir/
> > relay_domains = $mydestination #<-
> > relayhost = #<-
> > mynetworks = 127.0.0.0/8#<-
> > mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#<-
> > 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
> >
> > then i can send the srver via KEITAI(pocket phone ?)
> > but i cannot send mail by PC .
> >
> > i guess the cause of not sending  mail is company's router
> >
> > beause
> > /var/log/maillog says
> > -
> > Jun 23 15:15:47 abc postfix/smtpd[20788]: lost connection
> > after UNKNOWN from p123.akita.ocn.ne.jp[123.189.32.456]
> >
> > Jun 23 15:15:47 abc postfix/smtpd[20788]: disconnect from
> > p123.akita.ocn.ne.jp[123.189.32.456] unknown=0/1
> > commands=0/1
> >
> > Jun 23 15:16:32 abc dovecot: imap-login: Login:
> > user=,
> > method=PLAIN, rip=123.189.32.456, lip=160.16.114.201, mpid=16847, TLS,
> > session=
> >
> > ---
> > regards
> >
> >
>
> I really don't know anything about Postfix. And right now their
> webserver seems down and I can't see their documentation. Have you
> tried OpenSMTPD? :)
>
> p123.akita.ocn.ne.jp's IP is different now, and still seems
> impossible. .456? I'm not familiar enough with postfix/sasl/etc... to
> help with anything else, but that IP can't be correct. Octets only go
> up to 255. I'd see what's going on with that before looking at
> anything else.



Re: mail server on rental server ,cannot send mail

2015-06-24 Thread Craig Skinner
On 2015-06-23 Tue 20:04 PM |, Edgar Pettijohn wrote:
> 
> The first thing the postfix guys will tell you is to try without chroot.
> 

Well before that,
they'll ask for log extracts
& output from 'postconf -n' + 'postconf -Mf'.

http://www.postfix.org/DEBUG_README.html#mail