
# Do not change these directory settings - they are critical to Postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
# appending .domain is the MUA's job.
mydomain = domain.ork
myorigin = /etc/mailnameis the contents of the file it mentions. This is normally the same as your hostname minus the host itself, or in our case, domain.ork.
mydestination = $myhostname, $mydomain, trinkets.bis, ,localhost
relayhost =gives you the possibility of using the mail server on a machine for the sole purpose of sending mail to another mail server. The other server is the one that really sends it out into the Internet. This might be used in large organizations where there may be divisions of the company that work in remote locations with different types of Internet connection. There are cases where workers are accessing Internet from some type of broadband connection. If the mail were to go out directly, new anti-spamming techniques might tag this mail as spam (and often do!). This way, a branch office of an organization might configure Postfix to have a relay host which is at the main office with a permanent high-speed Internet connection. So you could use a hostname or IP address here as well.
relayhost = mail.parentco.con
mynetworks = 192.168.0.0/16, 127.0.0.0/8
#mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 200000000
message_size_limit = 3000000
recipient_delimiter = +is there to resolve some issues with mailing list software and is best left alone unless you run into problems with something that doesn't like it.
/^(.*)name="(.*).vbs"$/ REJECT Mail contains banned attachment
/^(.*)name="(.*).zip"$/ HOLD
body_checks = pcre:/etc/postfix/body_checks
smtpd_client_restrictions = reject_rbl_client relays.ordb.org
your smtpd_client_restrictions = line
header_checks = pcre:/etc/postfix/header_checks
/^Subject: FREE OFFER!!/ REJECT
taxes: bledger
postalias /etc/aliases
Jan 15 13:01:30 mailserver postfix/smtp[31604]: 182D312D5F:
find /var/spool/postfix -name [queue-id] -print | xargs rmfind will (pardon the redundancy) find the mail with that ID number and pass it along to be removed. Then restart Postfix again.