Re: mail server on rental server , cannot send gmail.com
very sorry . the previous mail is was sheer illusion. postfix works and opensmptd stopped. to do is . /etc/rc.d/nginxrestart /etc/rc.d/postfix stop /etc/rc.d/smtpd restart /etc/rc.d/dovecot restart - sorry , tuyosi .
Re: mail server on rental server , cannot send gmail.com
On 2015-07-15 Wed 14:53 PM |, tuyosi wrote: |Unless you actually need some feature of Postfix, now there's OpenSMTPD, i try unbound mailserver ( opensmtpd dovecot ) in intranet before . it manages to run . Good Tuyosi, you've successful experience of being a postmaster with it! but there is little informatio about openbsd in internet . are thre commprehensive URL about it ? Superb man pages;- smtpd(8), smtpd.conf(5), smtpctl(8). The project is at http://www.OpenSMTPD.org/ There's docs mailing list info there. Archive: http://marc.info/?l=opensmtpd-misc Wiki: http://github.com/OpenSMTPD/OpenSMTPD/wiki http://undeadly.org has some articles. Social media: http://twitter.com/OpenSMTPD i only to build minimum internet mail server for personal use , so OpenSMTPD is good choice because i hear it is simple and beautiful . I think you will enjoy deploying it.
Re: mail server on rental server , cannot send gmail.com
today i try openbsd 5.8be-ta. i send mail XXX@gmail , but cannot recieve mail from XXX@gmail. my dovecot fly poorly . and at Return to RBL.JP home page , some degree is OK . http://www.rbl.jp - RSET 250 2.0.0 Ok MAIL FROM: rlychk@localhost 250 2.1.0 Ok RCPT TO: rlyt...@h.rbl.jp 454 4.7.1 rlyt...@h.rbl.jp: Relay access denied /relay NOT accepted!!OK/ QUIT 421 4.7.0 mail.openbsd.link Error: too many errors=dovecot have errors. no relays accepted. =OK /- / Archive: http://marc.info/?l=opensmtpd-misc Wiki: http://github.com/OpenSMTPD/OpenSMTPD/wiki i wiil look at them. my /etc/mail/smtpd.conf listen on all table aliases db:/etc/mail/aliases.db accept from any for domain openbsd.link alias aliases deliver to mbox accept for local alias aliases deliver to mbox accept from local for any relay this is too simple but can send mail . mysterious . where is mynetwork , relay ... the men who make opensmtpd has super skill , i am shocked and look at sky . - regards
Re: mail server on rental server , cannot send gmail.com
On 2015-07-14 Tue 11:33 AM |, Tuyosi Takesima wrote: thnks your advice . i shoud study postfix sasl reading following your teaching . http://www.postfix.org/BASIC_CONFIGURATION_README.html#relay_from etc i lookup thunderbird's automatic setting. port 587 connection security :none authentification method: passwd, tranmitted insecurely Thunderbird auto connects to the server and lists what is available. There is an advanced manual setting thing, but the server still must make authentication methods transports available. is it possible to fake IPV4 adress ? if so the internet address system collapsed . Worry about that later. First job is to get authentication working. Either BSD files, Dovecot, SQL, LDAP, you chose how to run your server. Second job is encryption. Unless you actually need some feature of Postfix, now there's OpenSMTPD, and more people here to help you. And there's a mailing list for it too.
Re: mail server on rental server , cannot send gmail.com
thanks Craig . i try unbound mailserver ( opensmtpd dovecot ) in intranet before . it manages to run . but there is little informatio about openbsd in internet . are thre commprehensive URL about it ? i only to build minimum internet mail server for personal use , so OpenSMTPD is good choice because i hear it is simple and beautiful . |Unless you actually need some feature of Postfix, now there's OpenSMTPD, regards
Re: mail server on rental server , cannot send gmail.com
Hi Tuyosi On 2015-07-13 Mon 16:41 PM |, Tuyosi Takesima wrote: perhaps i solved the quize to send and rcieve email . openbsd mail server (this has main cf) | internet | 1.2.3.4 router | dhcp linux(thunderberd) in /etc/postfix/main.cf mynetworks = 127.0.0.0/8, 1.2.3.4/32 This works because the default smtp daemon relay restrictions permit $mynetworks, and authenticated connections: $ postconf -dh smtpd_relay_restrictions permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination Users either need to authenticate, or have an IP address in $mynetworks. When your WiFi router changes IP address, this won't work anymore. If someone else gets DHCP allocated your WiFi router's address, they can relay spam through your server. The server rental company could evict you. When you connect from a cafe, train, airport, hotel, it wont work. $mynetworks is usually for NAT ISP customer address blocks. See: /usr/local/share/doc/postfix/html/BASIC_CONFIGURATION_README.html#relay_from mynetworks and smtpd_relay_restrictions in postconf(5) Web: http://www.postfix.org/BASIC_CONFIGURATION_README.html#relay_from http://www.postfix.org/postconf.5.html#mynetworks http://www.postfix.org/postconf.5.html#smtpd_relay_restrictions The solution is for remote users to authenticate on the submission port.
Re: mail server on rental server , cannot send gmail.com
thnks your advice . i shoud study postfix sasl reading following your teaching . http://www.postfix.org/BASIC_CONFIGURATION_README.html#relay_from etc i lookup thunderbird's automatic setting. port 587 connection security :none authentification method: passwd, tranmitted insecurely is it possible to fake IPV4 adress ? if so the internet address system collapsed . regards
Re: mail server on rental server , cannot send gmail.com
Hi,all. perhaps i solved the quize to send and rcieve email . openbsd mail server (this has main cf) | internet | 1.2.3.4 router | dhcp linux(thunderberd) in /etc/postfix/main.cf mynetworks = 127.0.0.0/8, 1.2.3.4/32 1.2.3.4 is obtaind curl ifconfig.me on linux . or show ifonfig.me on firefox details is on http://aoiyuma.mydns.jp/mail-server.html* * --- regards * *
Re: mail server on rental server , cannot send gmail.com
rental server company forgive to use port 25 . i rewrite pf.conf , and master.cf now state , i can send and recieve mail with x...@docomo.ne.jp - but i cannot send mail to y...@gmail.com thunderbird says that An error occurred while sending mail. The mail server responded: 4.7.1 y...@gmail.com: Relay access denied. Please check the message recipient y...@gmail.com and try again and tail -30 /var/log/maillog says that Jul 13 14:10:50 aoiyuma postfix/smtpd[7133]: NOQUEUE: reject: RCPT from AAA.ocn.ne.jp[61.214.236.211 ]: 454 4.7.1 nakajin.fu...@gmail.com: Relay access denied; from=tuy...@openbsd.link to=nakajin. fu...@gmail.com proto=ESMTP helo=[192.168.1.127] Jul 13 14:12:30 aoiyuma postfix/smtpd[7133]: lost connection after RCPT from AAA.ocn.ne.jp[61.214.23 6.211] Jul 13 14:12:30 aoiyuma postfix/smtpd[7133]: disconnect from AAA.ocn.ne.jp[61.214.236.211] --- but now state is sufficient for me to use mail server. --- regards
Re: mail server on rental server , cannot send gmail.com
Hi Tuyosi, On 2015-07-11 Sat 06:45 AM |, Tuyosi Takesima wrote: Jul 11 15:20:52 aoiyuma postfix/smtpd[9635]: NOQUEUE: reject: RCPT from e0109-114-22-25-247.uqwimax.jp[114.22.25.247]: 454 4.7.1 nakajin.fu...@gmail.com: Relay access denied; from=tuy...@openbsd.link to=nakajin.fu...@gmail.com proto=SMTP helo=aoiyuma.mydns.jp The part postfix/smtpd[9635] means the connection was to the smtp port 25. Relay access denied is to stop being an open relay of spam. 114.22.25.247 is internet adress of sylpheed. Mail user agents (e.g. sylpheed) should connect to the submission port 587. e.g: ... postfix/submission/smtpd[27687] Clients connecting to the submission port need to authenticate. See these docs in: /usr/local/share/doc/postfix/html/ SOHO_README.html#stand_alone SOHO_README.html#client_sasl_enable BASIC_CONFIGURATION_README.html#relay_from BASIC_CONFIGURATION_README.html#relay_to or linked from http://www.postfix.org/documentation.html This is what a dovecot authenticated postfix submission session looks like: Jul 11 09:07:16 teak postfix/submission/smtpd[27687]: connect from 50.internal[192.168.1.50] Jul 11 09:07:18 teak postfix/submission/smtpd[27687]: 3mT3kG2vYRz2C: client=50.internal[192.168.1.50], sasl_method=CRAM-MD5, sasl_username=X Jul 11 09:07:21 teak postfix/cleanup[30241]: 3mT3kG2vYRz2C: message-id=20150711090718.39b15ccb@50.internal Jul 11 09:07:21 teak postfix/submission/smtpd[27687]: disconnect from 50.internal[192.168.1.50] sylpheed has now disconnected from postfix on the submission port. Next, postfix relays the mail (to 3 'To: ' addresses) Jul 11 09:07:21 teak postfix/qmgr[5914]: 3mT3kG2vYRz2C: from=x...@britvault.co.uk, size=1003, nrcpt=3 (queue active) Jul 11 09:07:21 teak spamlogd[13699]: outbound 66.39.2.39 Jul 11 09:07:21 teak spamlogd[13699]: outbound 64.233.167.27 Jul 11 09:07:22 teak spamlogd[13699]: outbound 98.138.112.38 Jul 11 09:07:22 teak postfix/smtp[31979]: 3mT3kG2vYRz2C: to=xx...@.cc, relay=mailwash39.pair.com[66.39.2.39]:25, delay=5.3, delays=4/0.11/0.88/0.26, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 2BFC08A2F3) Jul 11 09:07:23 teak postfix/smtp[20276]: 3mT3kG2vYRz2C: to=xx...@gmail.com, relay=gmail-smtp-in.l.google.com[64.233.167.27]:25, delay=6.4, delays=4/0.22/0.34/1.9, dsn=2.0.0, status=sent (250 2.0.0 OK 1436602043 s2si2927565wix.63 - gsmtp) Jul 11 09:07:24 teak postfix/smtp[5232]: 3mT3kG2vYRz2C: to=xxx...@yahoo.com, relay=mta6.am0.yahoodns.net[98.138.112.38]:25, delay=7.7, delays=4/0.31/0.8/2.6, dsn=2.0.0, status=sent (250 ok dirdel) Jul 11 09:07:24 teak postfix/qmgr[5914]: 3mT3kG2vYRz2C: removed
Re: mail server on rental server , cannot send gmail.com
thanks for advices . mynetworks = 127.0.0.0/8, 157.7.244.194/32 does not have effect . and i understand 587 's difficulty . a few days later i can use port 25 , now rental server prohibit using 25 . regards
Re: mail server on rental server , cannot send gmail.com
On Sat, 11 Jul 2015 06:45:12 +0900 Tuyosi Takesima nakajin.fu...@gmail.com wrote: Jul 11 15:20:52 aoiyuma postfix/smtpd[9635]: NOQUEUE: reject: RCPT from e0109-114-22-25-247.uqwimax.jp[114.22.25.247]: 454 4.7.1 nakajin.fu...@gmail.com: Relay access denied; from=tuy...@openbsd.link to=nakajin.fu...@gmail.com proto=SMTP helo= aoiyuma.mydns.jp It doesn't look like your email is making it to the queue - it's your local Postfix rejecting the connection, not Gmail. From your config, it looks like Postfix is only accepting email sent from 127.0.0.0/8 - you need to either add your IP address to mynetworks or enable SASL or other authentication.
Re: mail server on rental server , cannot send gmail.com
good advice. thanks Michael. tail /var/log/maillog is Jul 11 15:20:52 aoiyuma postfix/smtpd[9635]: warning: smtputf8_enable is true, but EAI support is not compiled in Jul 11 15:20:52 aoiyuma postfix/proxymap[20250]: warning: smtputf8_enable is true, but EAI support is not compiled in Jul 11 15:20:52 aoiyuma postfix/smtpd[9635]: connect from e0109-114-22-25-247.uqwimax.jp[114.22.25.247] Jul 11 15:20:52 aoiyuma postfix/anvil[24095]: warning: smtputf8_enable is true, but EAI support is not compiled in Jul 11 15:20:52 aoiyuma postfix/trivial-rewrite[29959]: warning: smtputf8_enable is true, but EAI support is not compiled in Jul 11 15:20:52 aoiyuma postfix/smtpd[9635]: NOQUEUE: reject: RCPT from e0109-114-22-25-247.uqwimax.jp[114.22.25.247]: 454 4.7.1 nakajin.fu...@gmail.com: Relay access denied; from=tuy...@openbsd.link to=nakajin.fu...@gmail.com proto=SMTP helo= aoiyuma.mydns.jp Jul 11 15:20:57 aoiyuma postfix/smtpd[9635]: lost connection after RCPT from e0109-114-22-25-247.uqwimax.jp[114.22.25.247] Jul 11 15:20:57 aoiyuma postfix/smtpd[9635]: disconnect from e0109-114-22-25-247.uqwimax.jp[114.22.25.247] helo=1 mail=1 rcpt=0/1 commands=2/3 and sylpheed says 'nakajin.fu...@gmail.com: Relay access denied' 114.22.25.247 is internet adress of sylpheed. and internet | 114.22.25.247 wifi router | 192.168.100.101 openbsd(sylpheed) --- regards
Re: mail server on rental server , cannot send gmail.com
On 2015-07-10 16:53, Tuyosi Takesima wrote: Hi ,all . i can send and recieve mail by using mail server on rental server . namely send to tuy...@openbsd.link recieve from tuy...@openbsd.link but now state , i cannot send mail to x...@gmail.com becase of relay host what should i do next ? Larger mail hosts require certain configurations to make sure you're not a spammer, or could be abused by spammers. Check your domain with a test site like: http://mxtoolbox.com/diagnostic.aspx Tim.
Re: mail server on rental server , cannot send gmail.com
On Sat, Jul 11, 2015 at 05:53:42AM +0900, Tuyosi Takesima wrote: i can send and recieve mail by using mail server on rental server . namely send to tuy...@openbsd.link recieve from tuy...@openbsd.link but now state , i cannot send mail to x...@gmail.com becase of relay host You didn't share the relevant /var/log/maillog entries, right? That's probably the most important diagnostic.
mail server on rental server , cannot send gmail.com
Hi ,all . i can send and recieve mail by using mail server on rental server . namely send to tuy...@openbsd.link recieve from tuy...@openbsd.link but now state , i cannot send mail to x...@gmail.com becase of relay host what should i do next ? my /etc/postfix/main.cf is --- myhostname = mail.openbsd.link mydomain = openbsd.link myorigin = $mydomain mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain inet_interfaces = all home_mailbox = Maildir/ mynetworks = 127.0.0.0/8 compatibility_level = 2 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 meta_directory = /etc/postfix shlib_directory = no and dovecot -n is # 2.2.15: /etc/dovecot/dovecot.conf # OS: OpenBSD 5.7 amd64 auth_mechanisms = plain login disable_plaintext_auth = no first_valid_uid = 1000 imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags listen = * mail_location = maildir:~/Maildir mbox_write_locks = fcntl mmap_disable = yes namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox Sent Messages { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = bsdauth } pop3_client_workarounds = outlook-no-nuls oe-ns-eoh protocols = imap ssl_cert = /etc/ssl/dovecotcert.pem ssl_key = /etc/ssl/private/dovecot.pem userdb { driver = passwd } details in http://aoiyuma.mydns.jp/mail-server.html . regards
Re: mail server on rental server , cannot send gmail.com
thanks trondd . http://mxtoolbox.com/diagnostic.aspx says smtp:mail.openbsd.link Monitor This Unable to connect after 15 seconds. TestResult SMTP ConnectFailed To ConnectMore Info Session Transcript: Connecting to 157.7.244.194 7/10/2015 5:00:41 PM Connection attempt #1 - Unable to connect after 15 seconds. [15.02 sec] and nslookup 157.7.244.194 - Server: 192.168.100.254 Address:192.168.100.254#53 Non-authoritative answer: 194.244.7.157.in-addr.arpa name = v157-7-244-194.myvps.jp. Authoritative answers can be found from: ah , [adress - name ] is not ready . i retern back to rental server setting . i will try it , but need some time . --- regards