All pastes #474685 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-06 23:14 UTC
rendered paste body
# 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
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
# will it be a permanent error or temporary
unknown_local_recipient_reject_code = 450
# how long to keep message on queue before return as failed.
# some have 3 days, I have 16 days as I am backup server for some people
# whom go on holiday with their server switched off.
maximal_queue_lifetime = 7d
# max and min time in seconds between retries if connection failed
minimal_backoff_time = 1000s
maximal_backoff_time = 8000s
# how long to wait when servers connect before receiving rest of data
smtp_helo_timeout = 60s
# how many address can be used in one message.
# effective stopper to mass spammers, accidental copy in whole address list
# but may restrict intentional mail shots.
smtpd_recipient_limit = 16
# how many error before back off.
smtpd_soft_error_limit = 3
# how many max errors before blocking it.
smtpd_hard_error_limit = 12

# TLS parameters
smtpd_tls_cert_file=/etc/postfix/postfix.cert
smtpd_tls_key_file=/etc/postfix/postfix.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_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.

myhostname = (mydomainhere).com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
relayhost =
mynetworks = 127.0.0.0/8
mynetworks_style = host
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
local_recipient_maps =

# Requirements for the HELO statement
smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname, re$
# Requirements for the sender details
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqd$
# Requirements for the connecting server
smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client relays$
# Requirement for the recipient address
smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, permit_sasl_$

# require proper helo at connections
smtpd_helo_required = yes
# waste spammers time before rejecting them
smtpd_delay_reject = yes
disable_vrfy_command = yes

# this specifies where the virtual mailbox folders will be located
virtual_mailbox_base = /var/spool/mail/virtual
# this is for the mailbox location for each user
virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf
# and their user id
virtual_uid_maps = mysql:/etc/postfix/mysql_uid.cf
# and group id
virtual_gid_maps =  mysql:/etc/postfix/mysql_gid.cf
# and this is for aliases
virtual_alias_maps = mysql:/etc/postfix/mysql_alias.cf
# and this is for domain lookups
virtual_mailbox_domains = mysql:/etc/postfix/mysql_domains.cf
# this is how to connect to the domains (all virtual, but the option is there)
# not used yet
# transport_maps = mysql:/etc/postfix/mysql_transport.cf

content_filter = amavis:[127.0.0.1]:10024
#receieve_override_options = no_address_mappings

smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =

smtpd_data_restrictions = reject_unauth_pipelining

---

May  6 18:36:28 ping-consultants imapd: LOGIN, user=darrell@ping-consultants.com, ip=[::ffff:127.0.0.1], protocol=IMAP
May  6 18:36:28 ping-consultants imapd: LOGOUT, user=darrell@ping-consultants.com, ip=[::ffff:127.0.0.1], headers=0, body=654, rcvd=74, sent=1097, time=0
May  6 18:43:11 ping-consultants imapd: LOGIN, user=darrell@ping-consultants.com, ip=[::ffff:127.0.0.1], protocol=IMAP
May  6 18:43:11 ping-consultants imapd: LOGOUT, user=darrell@ping-consultants.com, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=87, sent=391, time=0
May  6 18:49:47 ping-consultants postfix/qmgr[4982]: 0462DB3C0D: from=<amavis@ping-consultants.com>, size=788, nrcpt=1 (queue active)
May  6 18:49:47 ping-consultants postfix/smtp[5130]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
May  6 18:49:47 ping-consultants postfix/smtp[5130]: 0462DB3C0D: to=<amavis@ping-consultants.com>, orig_to=<amavis>, relay=none, delay=1904, delays=1904/0.02/0/0, dsn$
May  6 18:53:12 ping-consultants imapd: LOGIN, user=darrell@ping-consultants.com, ip=[::ffff:127.0.0.1], protocol=IMAP

---

May  6 06:33:04 ping-consultants postfix/qmgr[4683]: warning: connect to transport amavis: No such file or directory
May  6 06:35:12 ping-consultants postfix/master[4285]: fatal: /etc/postfix/master.cf: line 74: bad transport type: smtpd_enforce_tls=yes
May  6 06:42:28 ping-consultants postfix/master[4286]: fatal: /etc/postfix/master.cf: line 74: bad transport type: smtpd_enforce_tls=yes
May  6 06:48:09 ping-consultants amavis[3849]: (!!) TROUBLE in pre_loop_hook: db_home directory is not writable: /var/lib/amavis/db at /usr/sbin/amavisd-new line 6921.
May  6 06:48:29 ping-consultants postfix/master[4273]: fatal: /etc/postfix/master.cf: line 74: bad transport type: smtpd_enforce_tls=yes
May  6 06:54:41 ping-consultants postfix/master[4580]: fatal: /etc/postfix/master.cf: line 74: bad transport type: smtpd_enforce_tls=yes
May  6 06:55:54 ping-consultants postfix/postqueue[4586]: warning: Mail system is down -- accessing queue directly
May  6 17:58:52 ping-consultants postfix/master[4909]: fatal: /etc/postfix/master.cf: line 88: bad transport type: smtpd_sasl_auth_enable=yes