m***@gmail.com
2018-04-28 21:43:43 UTC
I've followed several guides....
I've tried several variations ....
I've had no success setting up a basic (home) email server.
I need help from someone who can help me logically process some basic "start to finish" setup instructions.
I can provide particulars for my setup, cut & paste any config files. Whatever is needed to get my server to send and receive email! I feel like I have tried nearly everything and get about 90% done... but my server won't send or receive.
I know lots of times, and on some message boards questions fly back and forth and the main question sometimes gets lost in the process. So I thought I'd provide whatever info is requested by member of this list to get a basic email server up & running.
OR if there is a better forum to get help I'd be grateful to be pointed in that direction as well.
-------------
-------------
My hardware: RaspberryPi 3.
My distro: Raspbian-Lite (debian-stretch)
Relevant Software installed: LAMP server + Postfix & Dovecot
My ServerName: bluewaters.group
My Domain name: www.bluewaters.group
My IP Address: 172.111.198.90 (Dedicated IP)
SSL is enabled.
-------------
-------------
/etc/postfix/main.conf
meta_directory = /etc/postfix
setgid_group = postdrop
command_directory = /usr/sbin
sample_directory = /etc/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
sendmail_path = /usr/sbin/sendmail
daemon_directory = /usr/lib/postfix/sbin
manpage_directory = /usr/share/man
html_directory = /usr/share/doc/postfix/html
data_directory = /var/lib/postfix
shlib_directory = /usr/lib/postfix
smtp_rcpt_timeout = 120s
smtp_helo_timeout = 120s
smtp_mail_timeout = 120s
smtp_data_xfer_timeout = 120s
home_mailbox = Maildir/
mailbox_command =
myhostname = bluewaters.group
myorigin = bluewaters.group
mydomain = bluewaters.group
mydestination = bluewaters.group
#relayhost = [mail.bluewaters.group]:587
#relayhost = bluewaters.group
biff = no
append_dot_mydomain = yes
readme_directory = no
compatibility_level = 2
unknown_local_recipient_reject_code = 550
mailbox_size_limit = 0
recipient_delimiter = +
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#relay_domains = $mydestination
inet_protocols = ipv4
smtpd_use_tls=yes
smtpd_tls_cert_file = /etc/postfix/ssl/bwg.crt
smtpd_tls_key_file = /etc/postfix/ssl/bwg.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = bluewaters.group
smtpd_banner = $myhostname ESMTP $mail_name (Raspbian)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destinat$
smtpd_recipient_restrictions = permit_mynetworks permit_auth_destination permit_sasl_authent$
mynetworks_style = subnet
smtpd_tls_security_level = encrypt
-----------------
-------------------
/etc/postfix/master.cf
# To open and secure port 587
submission inet n - n - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_tls_security_level=may
-o smtpd_sasl_auth_enable=yes
-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
# To open and secure port 465:
smtps inet n - n - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-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
smtp inet n - y - - smtpd
#smtp inet n - y - 1 postscreen
#smtpd pass - - y - - smtpd
#dnsblog unix - - y - 0 dnsblog
#tlsproxy unix - - y - 0 tlsproxy
#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
trace unix - - y - 0 bounce
verify unix - - y - 1 verify
flush unix n - y 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - y - - smtp
relay unix - - y - - smtp
showq unix n - y - - showq
error unix - - y - - error
retry unix - - y - - error
discard unix - - y - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - y - - lmtp
anvil unix - - y - 1 anvil
scache unix - - y - 1 scache
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${ex$
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
I've tried several variations ....
I've had no success setting up a basic (home) email server.
I need help from someone who can help me logically process some basic "start to finish" setup instructions.
I can provide particulars for my setup, cut & paste any config files. Whatever is needed to get my server to send and receive email! I feel like I have tried nearly everything and get about 90% done... but my server won't send or receive.
I know lots of times, and on some message boards questions fly back and forth and the main question sometimes gets lost in the process. So I thought I'd provide whatever info is requested by member of this list to get a basic email server up & running.
OR if there is a better forum to get help I'd be grateful to be pointed in that direction as well.
-------------
-------------
My hardware: RaspberryPi 3.
My distro: Raspbian-Lite (debian-stretch)
Relevant Software installed: LAMP server + Postfix & Dovecot
My ServerName: bluewaters.group
My Domain name: www.bluewaters.group
My IP Address: 172.111.198.90 (Dedicated IP)
SSL is enabled.
-------------
-------------
/etc/postfix/main.conf
meta_directory = /etc/postfix
setgid_group = postdrop
command_directory = /usr/sbin
sample_directory = /etc/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
sendmail_path = /usr/sbin/sendmail
daemon_directory = /usr/lib/postfix/sbin
manpage_directory = /usr/share/man
html_directory = /usr/share/doc/postfix/html
data_directory = /var/lib/postfix
shlib_directory = /usr/lib/postfix
smtp_rcpt_timeout = 120s
smtp_helo_timeout = 120s
smtp_mail_timeout = 120s
smtp_data_xfer_timeout = 120s
home_mailbox = Maildir/
mailbox_command =
myhostname = bluewaters.group
myorigin = bluewaters.group
mydomain = bluewaters.group
mydestination = bluewaters.group
#relayhost = [mail.bluewaters.group]:587
#relayhost = bluewaters.group
biff = no
append_dot_mydomain = yes
readme_directory = no
compatibility_level = 2
unknown_local_recipient_reject_code = 550
mailbox_size_limit = 0
recipient_delimiter = +
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#relay_domains = $mydestination
inet_protocols = ipv4
smtpd_use_tls=yes
smtpd_tls_cert_file = /etc/postfix/ssl/bwg.crt
smtpd_tls_key_file = /etc/postfix/ssl/bwg.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = bluewaters.group
smtpd_banner = $myhostname ESMTP $mail_name (Raspbian)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destinat$
smtpd_recipient_restrictions = permit_mynetworks permit_auth_destination permit_sasl_authent$
mynetworks_style = subnet
smtpd_tls_security_level = encrypt
-----------------
-------------------
/etc/postfix/master.cf
# To open and secure port 587
submission inet n - n - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_tls_security_level=may
-o smtpd_sasl_auth_enable=yes
-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
# To open and secure port 465:
smtps inet n - n - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-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
smtp inet n - y - - smtpd
#smtp inet n - y - 1 postscreen
#smtpd pass - - y - - smtpd
#dnsblog unix - - y - 0 dnsblog
#tlsproxy unix - - y - 0 tlsproxy
#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
trace unix - - y - 0 bounce
verify unix - - y - 1 verify
flush unix n - y 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - y - - smtp
relay unix - - y - - smtp
showq unix n - y - - showq
error unix - - y - - error
retry unix - - y - - error
discard unix - - y - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - y - - lmtp
anvil unix - - y - 1 anvil
scache unix - - y - 1 scache
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${ex$
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}