E mail server won’t obtain emails – Postfix / Dovecot / Raspberry Pi

Background

I've been engaged on getting an e-mail server arrange utilizing a Raspberry Pi because the host. I've been primarily utilizing this guide as my assist however I seem like caught. I do have a residential service however have an account at dynu.com with the companies "SMTP Outbound relay" and "E mail Retailer / Ahead" to get round this. Additionally they host my area identify as nicely.

Drawback

I can ship emails no downside, what I'm having a problem with is receiving them. I'll publish lots of element as I've tried many issues and really feel like one thing is certain to show up a clue.

Ports

Utilizing a port scanner I can decide the next:

  • Port 25 = Blocked
  • Port 2525 = Unblocked
  • Port 143 = Unblocked
  • Port 465 = Unblocked
  • Port 993 = Unblocked

All ports are forwarding via the router efficiently to my e-mail host.

OpenSSL Testing (works)

Utilizing the command openssl s_client -connect mail.xxx.com:993 -quiet (the place xxx is my precise area) I can login utilizing a login consumer password , `b choose inbox', 'c logout' Utilizing my precise area identify reasonably than localhost makes me really feel that that is arrange accurately.

Monitoring mail.log when receiving an e-mail

The one entry that seems: enter image description here

I see in my Dyno E mail Retailer / Ahead service that they only sit there and by no means switch:

enter image description here

I've the Dyno e-mail ahead / retailer service arrange as follows:

enter image description here

I won't even want this E mail Ahead / Retailer service since port 993 is just not blocked by my ISP? I simply am utilizing it as a result of I can not get it to work with out it both so could as nicely attempt one thing completely different.

Related configuration information

Important.cfg

smtpd_banner = $myhostname ESMTP $mail_name (Raspbian)
biff = no

append_dot_mydomain = no

readme_directory = no

# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# contemporary installs.
compatibility_level = 2

# TLS parameters
smtpd_tls_cert_file=/and so on/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/and so on/ssl/personal/ssl-cert-snakeoil.key
smtpd_use_tls=sure
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated 
defer_unauth_destination
myhostname = xxx.com (I've the true one right here)
mydomain = xxx.com (I've the true one right here)

myorigin = $mydomain

mydestination = localhost, localhost.localdomain

#added
smtp_sasl_auth_enable = sure
smtp_sasl_password_maps = hash:/and so on/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous

relayhost = [relay.dynu.com]:2525
smtp_sasl_use_tls = sure
smtp_sasl_auth_enable = sure
smtp_sasl_security_options = noanonymous
smtp_generic_maps = hash:/and so on/postfix/generic

mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all


smtpd_recipient_restrictions =
    permit_sasl_authenticated,
    permit_mynetworks,
    reject_unauth_destinations

smtpd_helo_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    reject_invalid_helo_hostname,
    reject_non_fqdn_helo_hostname,
    reject_unknown_helo_hostname,
    check_helo_access hash:/and so on/postfix/helo_access

smtpd_sasl_type = dovecot
smtpd_sasl_path = personal/auth
smtpd_sasl_auth_enable = sure
smtpd_tls_auth_only = sure

Grasp.cf

#
# Postfix grasp course of configuration file.  For particulars on the format
# of the file, see the grasp(5) guide web page (command: "man 5 grasp" or
# on-line: http://www.postfix.org/grasp.5.html).
#
# Don't forget to execute "postfix reload" after modifying this file.
#
# ==========================================================================
# service kind  personal unpriv  chroot  wakeup  maxproc command + args
#               (sure)   (sure)   (no)    (by no means) (100)
# ==========================================================================
smtp      inet  n       -       y       -       -       smtpd
2525       inet  n   -   n   -   -   smtpd
#smtp      inet  n       -       y       -       1       postscreen
#smtpd     cross  -       -       y       -       -       smtpd
#dnsblog   unix  -       -       y       -       0       dnsblog
#tlsproxy  unix  -       -       y       -       0       tlsproxy
#submission inet n       -       y       -       -       smtpd
#  -o syslog_name=postfix/submission
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=sure
#  -o smtpd_tls_auth_only=sure
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=
#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
smtps     inet  n       -       -       -       -       smtpd
  -o syslog_name=postfix/smtps
  -o smtpd_tls_wrappermode=sure
  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
#  -o smtpd_sasl_auth_enable=sure
#  -o smtpd_sasl_auth_enable=sure
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=
#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628       inet  n       -       y       -       -       qmqpd
pickup    unix  n       -       y       60      1       pickup
cleanup   unix  n       -       y       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
#qmgr     unix  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       y       1000?   1       tlsmgr
rewrite   unix  -       -       y       -       -       trivial-rewrite
bounce    unix  -       -       y       -       0       bounce
defer     unix  -       -       y       -       0       bounce
hint     unix  -       -       y       -       0       bounce
confirm    unix  -       -       y       -       1       confirm
flush     unix  n       -       y       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       y       -       -       smtp
relay     unix  -       -       y       -       -       smtp
        -o syslog_name=postfix/$service_name
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       y       -       -       showq
error     unix  -       -       y       -       -       error
retry     unix  -       -       y       -       -       error
discard   unix  -       -       y       -       -       discard
native     unix  -       n       n       -       -       native
digital   unix  -       n       n       -       -       digital
lmtp      unix  -       -       y       -       -       lmtp
anvil     unix  -       -       y       -       1       anvil
scache    unix  -       -       y       -       1       scache
postlog   unix-dgram n  -       n       -       1       postlogd
#
# ====================================================================
# Interfaces to non-Postfix software program. Make sure to look at the guide
# pages of the non-Postfix software program to search out out what choices it needs.
#
# Lots of the following companies use the Postfix pipe(8) supply
# agent.  See the pipe(8) man web page for details about ${recipient}
# and different message envelope choices.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for particulars.
# Additionally specify in essential.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu consumer=vmail argv=/usr/bin/maildrop -d ${recipient}
# 
# ====================================================================
#
# Latest Cyrus variations can use the present "lmtp" grasp.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" pay attention="localhost:lmtp" proto=tcp4
#
# Specify in essential.cf a number of of the next:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Additionally specify in essential.cf: cyrus_destination_recipient_limit=1 
#
#cyrus     unix  -       n       n       -       -       pipe
#  consumer=cyrus argv=/cyrus/bin/ship -e -r ${sender} -m ${extension} ${consumer}
#
# ====================================================================
# Outdated instance of supply by way of Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R consumer=cyrus argv=/cyrus/bin/ship -e -m ${extension} ${consumer}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration particulars.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu consumer=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Different exterior supply strategies.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F consumer=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. consumer=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -   n   n   -   2   pipe
  flags=R consumer=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} 
${consumer} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR consumer=listing argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${consumer}

Dovecot 10-master.conf

Undoubtedly is listening on port 993 as demonstrated by the login above:

service imap-login {
  port = 143
}
inet_listener imaps {
  port = 993
  ssl = sure
}

If there are some other config information that should be checked / posted, let me know and I can present.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *