I have an issue receive mails. From both client and roundcube. Sending mail from both of them works fine.
Here is my maillog:
the **** is just to cencor some personal info :X
Here is my Main.cf
¨
Here is my master.cf
Thanks for you time !
Here is my maillog:
Code:
Jun 24 13:01:27 ca postfix/qmgr[17982]: 029D05040EBE: from=<eirik.si*****@******.com>, size=1084, nrcpt=1 (queue active)
Jun 24 13:01:27 ca postfix/qmgr[17982]: warning: connect to transport private/dovecot: Connection refused
Jun 24 13:01:27 ca postfix/qmgr[17982]: 3E2095040DA5: from=<double-bounce@ca.norsat-ent.com>, size=842, nrcpt=1 (queue active)
Jun 24 13:01:27 ca postfix/qmgr[17982]: B73FB5040EE2: from=<contact@********.com>, size=1303, nrcpt=1 (queue active)
Jun 24 13:01:27 ca postfix/qmgr[17982]: 77D655040EBC: from=<eirsik@*********.com>, size=2598, nrcpt=1 (queue active)
Jun 24 13:01:27 ca postfix/local[19167]: error: open database /etc/aliases.db: No such file or directory
Jun 24 13:01:27 ca postfix/local[19167]: warning: hash:/etc/aliases is unavailable. open database /etc/aliases.db: No such file or directory
Jun 24 13:01:27 ca postfix/local[19167]: warning: hash:/etc/aliases: lookup of 'postmaster' failed
Jun 24 13:01:27 ca postfix/local[19167]: 3E2095040DA5: to=<postmaster@ca.norsat-ent.com>, orig_to=<postmaster>, relay=local, delay=215809, delays=215809/0/0/0.18, dsn=4.3.0, status=deferred (alias database unavailable)
Jun 24 13:01:27 ca postfix/error[19171]: 77D655040EBC: to=<eirik.si*******@**********.com>, relay=none, delay=1241, delays=1241/0.01/0/0.17, dsn=4.3.0, status=deferred (mail transport unavailable)
Jun 24 13:01:27 ca postfix/error[19166]: 029D05040EBE: to=<eirik.si*******@**********.com>, relay=none, delay=1187, delays=1187/0.01/0/0.18, dsn=4.3.0, status=deferred (mail transport unavailable)
Jun 24 13:01:27 ca postfix/error[19168]: B73FB5040EE2: to=<eirik.si*******@**********.com>, relay=none, delay=4430, delays=4429/0.01/0/0.18, dsn=4.3.0, status=deferred (mail transport unavailable)
Jun 24 13:02:20 ca postfix/smtpd[19324]: error: open database /etc/aliases.db: No such file or directory
Jun 24 13:02:20 ca postfix/smtpd[19324]: connect from mail-lf0-f50.google.com[209.85.215.50]
Jun 24 13:02:20 ca postfix/smtpd[19324]: Anonymous TLS connection established from mail-lf0-f50.google.com[209.85.215.50]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jun 24 13:02:20 ca postfix/smtpd[19324]: 8650C5040ED7: client=mail-lf0-f50.google.com[209.85.215.50]
Jun 24 13:02:20 ca postfix/cleanup[19326]: 8650C5040ED7: message-id=<CAMUOBZjQ31yxFEwRDMTZp4L+UkhgWwiB_n7t38vm7b3Qi1Vtsw@mail.gmail.com>
Jun 24 13:02:20 ca postfix/qmgr[17982]: 8650C5040ED7: from=<eirsik@******.com>, size=2594, nrcpt=1 (queue active)
Jun 24 13:02:20 ca postfix/smtpd[19324]: disconnect from mail-lf0-f50.google.com[209.85.215.50]
Jun 24 13:02:20 ca postfix/error[19166]: 8650C5040ED7: to=<eirik.si******@**********.com>, relay=none, delay=0.23, delays=0.18/0/0/0.06, dsn=4.3.0, status=deferred (mail transport unavailable)
the **** is just to cencor some personal info :X
Here is my Main.cf
¨
Code:
# postfix config file
# uncomment for debugging if needed
soft_bounce=yes
# postfix main
mail_owner = postfix
setgid_group = postdrop
delay_warning_time = 4
# postfix paths
html_directory = no
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
queue_directory = /var/spool/postfix
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.2/samples
readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
# network settings
inet_interfaces = all
mydomain = ca.norsat-ent.com
myhostname = ca.norsat-ent.com
mynetworks = 127.0.0.1, 78.46.***.***
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
relay_domains = proxy:mysql:/etc/sentora/configs/postfix/mysql-relay_domains_maps.cf
# mail delivery
recipient_delimiter = +
# mappings
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
= hash:/etc/postfix/transport
=
# virtual setup
virtual_alias_maps = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_alias_maps.cf,
regexp:/etc/sentora/configs/postfix/virtual_regexp
virtual_mailbox_base = /var/sentora/vmail
virtual_mailbox_domains = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_mailbox_maps.cf
virtual_minimum_uid = 998
virtual_uid_maps = static:998
virtual_gid_maps = static:12
virtual_transport = dovecot
= 1
# debugging
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
# authentication
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
# tls config
smtp_use_tls = yes
smtpd_use_tls = yes
# Disable SSLV3 - POODLE - Begin
smtpd_tls_mandatory_protocols=!SSLv2,!SSLv3
smtp_tls_mandatory_protocols=!SSLv2,!SSLv3
smtpd_tls_protocols=!SSLv2,!SSLv3
smtp_tls_protocols=!SSLv2,!SSLv3
# Disable SSLV3 - POODLE - End
smtpd_tls_auth_only = no
smtpd_tls_security_level = may
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
# Change mail.example.com.* to your host name
smtpd_tls_key_file = /etc/pki/tls/certs/ca_norsat-ent_com.key
smtpd_tls_cert_file = /etc/pki/tls/certs/ca_norsat-ent_com.crt
# smtpd_tls_CAfile = /etc/pki/tls/root.crt
# rules restrictions
smtpd_client_restrictions =
smtpd_helo_restrictions =
smtpd_sender_restrictions =
smtpd_client_restrictions =
smtpd_helo_restrictions =
smtpd_sender_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain
# uncomment for realtime black list checks. (Warn: will also reject false positive)
# ,reject_rbl_client zen.spamhaus.org
# ,reject_rbl_client bl.spamcop.net
# ,reject_rbl_client dnsbl.sorbs.net
smtpd_helo_required = yes
unknown_local_recipient_reject_code = 550
disable_vrfy_command = yes
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_banner = $myhostname ESMTP
message_size_limit = 20480000
Here is my master.cf
Code:
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
-o receive_override_options=no_address_mappings
Menu FAQ and Alert List inet n - n - - smtpd
inet n - n - 1 postscreen
pass - - n - - smtpd
unix - - n - 0 dnsblog
unix - - n - 0 tlsproxy
submission inet n - n - - smtpd
# -o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_tls_wrappermode=yes
-o smtpd_etrn_restrictions=reject
# -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=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
smtps inet n - n - - smtpd
# -o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_tls_security_level=encrypt
-o smtpd_etrn_restrictions=reject
# -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=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
zpanel to sentora inet n - n - - qmqpd
pickup unix n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr unix n - n 300 1 qmgr
unix n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
unix - n n - - pipe
# flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
# lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
# mailbox_transport = lmtp:inet:localhost
# virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
unix - n n - - pipe
# user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
#
# Old example of delivery via Cyrus.
#
#old-cyrus unix - n n - - pipe
# flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
unix - n n - - pipe
# flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# ====================================================================
#
# Other external delivery methods.
#
unix - n n - - pipe
# flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
#
unix - n n - - pipe
# flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
#
#scalemail-backend unix - n n - 2 pipe
# flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
# ${nexthop} ${user} ${extension}
#
unix - n n - - pipe
# flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
# ${nexthop} ${user}
Thanks for you time !