c***@gmail.com
2016-08-04 11:54:22 UTC
Hi,
Hopefully I can get a little help with the issue I am facing. I'm running the latest Dovecot version on Ubuntu Server and having issues with the /etc/postfix/main.cf configuration for the purpose of have a simple SMTP only server(not to receive mail).
I am using telnet to server locally and have tested externally to the server and let's me in all ok. But when I try to send mail back to the domain it is hosted on, it fails with connection refused.
Emailing out to all other external domains work.. for example I am doing this when testing to send email to my own domain:
HELO mydomain.co.uk
MAIL FROM: ***@mydomain.co.uk
RCPT TO: ***@mydomain.co.uk
DATA
Subject: some text
some text
.
Output of /var/log/mail.log is:
Aug 4 12:45:20 ubuntu postfix/master[2710]: daemon started -- version 2.11.0, configuration /etc/postfix
Aug 4 12:45:30 ubuntu postfix/smtpd[2718]: connect from localhost[::1]
Aug 4 12:45:51 ubuntu postfix/smtpd[2718]: A36451A0B36: client=localhost[::1]
Aug 4 12:46:01 ubuntu postfix/cleanup[2721]: A36451A0B36: message-id=<***@smtp.mydomain.co.uk.$
Aug 4 12:46:01 ubuntu postfix/qmgr[2714]: A36451A0B36: from=<***@mydomain.co.uk>, size=352, nrcpt=1 (que$
Aug 4 12:46:01 ubuntu postfix/smtp[2722]: connect to idnonline.co.uk[192.168.2.253]:25: Connection refused
Aug 4 12:46:01 ubuntu postfix/smtp[2722]: connect to idnonline.co.uk[192.168.2.251]:25: Connection refused
Aug 4 12:46:01 ubuntu postfix/smtp[2722]: A36451A0B36: to=<***@mydomain.co.uk>, relay=none, delay=18, delay$
Aug 4 12:46:16 ubuntu postfix/smtpd[2718]: disconnect from localhost[::1]
Here is the output of /etc/postfix/main.cf :
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = smtp.idnonline.co.uk
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = all
local_recipient_maps =
Ports are open on the router.
The reason I need to send mail back is because we have external client that need a basic SMTP server to send notification emails to our ***@mydomain.co.uk mailbox.
Any help appreciated.
Hopefully I can get a little help with the issue I am facing. I'm running the latest Dovecot version on Ubuntu Server and having issues with the /etc/postfix/main.cf configuration for the purpose of have a simple SMTP only server(not to receive mail).
I am using telnet to server locally and have tested externally to the server and let's me in all ok. But when I try to send mail back to the domain it is hosted on, it fails with connection refused.
Emailing out to all other external domains work.. for example I am doing this when testing to send email to my own domain:
HELO mydomain.co.uk
MAIL FROM: ***@mydomain.co.uk
RCPT TO: ***@mydomain.co.uk
DATA
Subject: some text
some text
.
Output of /var/log/mail.log is:
Aug 4 12:45:20 ubuntu postfix/master[2710]: daemon started -- version 2.11.0, configuration /etc/postfix
Aug 4 12:45:30 ubuntu postfix/smtpd[2718]: connect from localhost[::1]
Aug 4 12:45:51 ubuntu postfix/smtpd[2718]: A36451A0B36: client=localhost[::1]
Aug 4 12:46:01 ubuntu postfix/cleanup[2721]: A36451A0B36: message-id=<***@smtp.mydomain.co.uk.$
Aug 4 12:46:01 ubuntu postfix/qmgr[2714]: A36451A0B36: from=<***@mydomain.co.uk>, size=352, nrcpt=1 (que$
Aug 4 12:46:01 ubuntu postfix/smtp[2722]: connect to idnonline.co.uk[192.168.2.253]:25: Connection refused
Aug 4 12:46:01 ubuntu postfix/smtp[2722]: connect to idnonline.co.uk[192.168.2.251]:25: Connection refused
Aug 4 12:46:01 ubuntu postfix/smtp[2722]: A36451A0B36: to=<***@mydomain.co.uk>, relay=none, delay=18, delay$
Aug 4 12:46:16 ubuntu postfix/smtpd[2718]: disconnect from localhost[::1]
Here is the output of /etc/postfix/main.cf :
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = smtp.idnonline.co.uk
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = all
local_recipient_maps =
Ports are open on the router.
The reason I need to send mail back is because we have external client that need a basic SMTP server to send notification emails to our ***@mydomain.co.uk mailbox.
Any help appreciated.