Discussion:
Postfix/dovecot/mysql/amavis setup
(too old to reply)
Carl Jeptha
2016-08-04 21:53:15 UTC
Permalink
Hi,
Would like a verification that my configuration settings are correct, Here is the output of postconf -n
postconf -n
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
body_checks = regexp:/etc/postfix/body_checks
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
default_process_limit = 200
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
enable_original_recipient = no
header_checks = regexp:/etc/postfix/header_checks
inet_interfaces = all
inet_protocols = ipv4
invalid_hostname_reject_code = 554
mailbox_size_limit = 0
maximal_queue_lifetime = 2d
multi_recipient_bounce_reject_code = 554
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = domain.tld
myhostname = computer.domain.tld
mynetworks =
127.0.0.0/8,
x.x.x.0/25,
y.y.y.0/30,
z.z.z.0/24
mynetworks_style = host
myorigin = /etc/mailname
non_fqdn_reject_code = 554
readme_directory = no
recipient_delimiter = +
relay_domains =
$mydestination,
mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_restrictions =
reject_rbl_client cbl.abuseat.org,
reject_rbl_client b.barracudacentral.org,
reject_rbl_client relays.ordb.org,
permit_mynetworks,
permit_sasl_authenticated,
permit_auth_destination,
reject_unknown_client,
reject
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions =
permit_mynetworks,
reject_invalid_hostname,
reject_unknown_helo_hostname,
reject_non_fqdn_helo_hostname,
regexp:/etc/postfix/helo.regexp,
permit
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
check_policy_service inet:127.0.0.1:10023,
reject_rbl_client b.barracudacentral.org,
reject_rbl_client ix-dns01.dnsbl.manitu.net,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client dsn.rfc-ignorant.org,
reject_rbl_client dul.dnsbl.sorbs.net,
reject_rbl_client list.dsbl.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.sorbs.net,
reject_rbl_client combined.rbl.msrbl.net,
reject_rbl_client rabl.nuclearelephant.com,
reject_unauth_destination,
reject_invalid_hostname,
reject_unauth_pipelining,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
permit
smtpd_reject_unlisted_recipient = yes
smtpd_relay_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_unknown_recipient_domain,
check_policy_service inet:127.0.0.1:10023,
reject_unauth_pipelining,
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
reject_unknown_sender_domain,
reject_unauth_pipelining,
permit
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions =
permit_mynetworks,
reject_sender_login_mismatch,
reject_unknown_sender_domain,
permit_sasl_authenticated,
reject_non_fqdn_sender,
reject_unauthenticated_sender_login_mismatch,
reject_unlisted_sender,
reject_unverified_sender
smtpd_tls_CAfile = /etc/ssl/IntermediateCA.crt
smtpd_tls_auth_only = optional
smtpd_tls_cert_file = /etc/ssl/certs/ssl_certificate.crt
smtpd_tls_key_file = /etc/ssl/private/myserver.key
smtpd_tls_loglevel = 1
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
tls_random_source = dev:/dev/urandom
unknown_address_reject_code = 554
unknown_hostname_reject_code = 554
virtual_alias_maps =
mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf,
mysql:/etc/postfix/mysql/mysql_virtual_alias_domainaliases_maps.cf
virtual_gid_maps = static:8
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_mailbox_maps =
mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf,
mysql:/etc/postfix/mysql/mysql_virtual_mailbox_domainaliases_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:150
Carl Jeptha
2016-08-05 13:28:34 UTC
Permalink
Post by Carl Jeptha
Hi,
Would like a verification that my configuration settings are correct, Here is the output of postconf -n
postconf -n
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
body_checks = regexp:/etc/postfix/body_checks
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
default_process_limit = 200
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
enable_original_recipient = no
header_checks = regexp:/etc/postfix/header_checks
inet_interfaces = all
inet_protocols = ipv4
invalid_hostname_reject_code = 554
mailbox_size_limit = 0
maximal_queue_lifetime = 2d
multi_recipient_bounce_reject_code = 554
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = domain.tld
myhostname = computer.domain.tld
mynetworks =
127.0.0.0/8,
x.x.x.0/25,
y.y.y.0/30,
z.z.z.0/24
mynetworks_style = host
myorigin = /etc/mailname
non_fqdn_reject_code = 554
readme_directory = no
recipient_delimiter = +
relay_domains =
$mydestination,
mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_restrictions =
reject_rbl_client cbl.abuseat.org,
reject_rbl_client b.barracudacentral.org,
reject_rbl_client relays.ordb.org,
permit_mynetworks,
permit_sasl_authenticated,
permit_auth_destination,
reject_unknown_client,
reject
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions =
permit_mynetworks,
reject_invalid_hostname,
reject_unknown_helo_hostname,
reject_non_fqdn_helo_hostname,
regexp:/etc/postfix/helo.regexp,
permit
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
check_policy_service inet:127.0.0.1:10023,
reject_rbl_client b.barracudacentral.org,
reject_rbl_client ix-dns01.dnsbl.manitu.net,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client dsn.rfc-ignorant.org,
reject_rbl_client dul.dnsbl.sorbs.net,
reject_rbl_client list.dsbl.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.sorbs.net,
reject_rbl_client combined.rbl.msrbl.net,
reject_rbl_client rabl.nuclearelephant.com,
reject_unauth_destination,
reject_invalid_hostname,
reject_unauth_pipelining,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
permit
smtpd_reject_unlisted_recipient = yes
smtpd_relay_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_unknown_recipient_domain,
check_policy_service inet:127.0.0.1:10023,
reject_unauth_pipelining,
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
reject_unknown_sender_domain,
reject_unauth_pipelining,
permit
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions =
permit_mynetworks,
reject_sender_login_mismatch,
reject_unknown_sender_domain,
permit_sasl_authenticated,
reject_non_fqdn_sender,
reject_unauthenticated_sender_login_mismatch,
reject_unlisted_sender,
reject_unverified_sender
smtpd_tls_CAfile = /etc/ssl/IntermediateCA.crt
smtpd_tls_auth_only = optional
smtpd_tls_cert_file = /etc/ssl/certs/ssl_certificate.crt
smtpd_tls_key_file = /etc/ssl/private/myserver.key
smtpd_tls_loglevel = 1
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
tls_random_source = dev:/dev/urandom
unknown_address_reject_code = 554
unknown_hostname_reject_code = 554
virtual_alias_maps =
mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf,
mysql:/etc/postfix/mysql/mysql_virtual_alias_domainaliases_maps.cf
virtual_gid_maps = static:8
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_mailbox_maps =
mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf,
mysql:/etc/postfix/mysql/mysql_virtual_mailbox_domainaliases_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:150
The reason for asking for a checkup for a few strange little oddities:
1. My fossamail on windows 10 cannot send mail.
2. Microsoft email programs doesn't "always" pick up the settings.
3. Amavis appears to be having an issue with some emails:
host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=18294-03 - Temporary MTA failure on relaying, From MTA() during fwd-connect (Negative greeting: at (eval 97) line 479.): id=18294-03 (in reply to end of DATA command)

I have tried searching for this error and have not been able to google it
Loading...