On Wed, Oct 12, 2016 at 03:25:25PM -0400, Glenn Forbes Fleming Larratt wrote:
> I've done some searching of the list archives and the web, but I can't lay
> hands on an answer to this question:
>
> - is there a way, ideally documented in a HOWTO or guide, to configure
> PostFix such that:
>
> - it will accept any mail (think "open relay", but...);
> - it will *never* attempt to forward that mail;
> - it will *never* generate e-mail: no sent mail, no return receipts, no
> bounces, nothing?
main.cf:
# Adjust as desired, this accepts 50MB messages:
#
message_size_limit = 52428800
mailbox_size_limit = 104857600
virtual_mailbox_limit = 104857600
queue_min_free = 104857600
# All domains are virtual mailbox domains
#
virtual_mailbox_domains = static:all
virtual_transport = virtual
# Splay out the mail into a pile of maildirs,
# one per virtual(8) process id.
#
virtual_mailbox_base = /var/spool/junkmail/
virtual_mailbox_maps = static:$process_id/
# Reserve an otherwise unused uid/gid, and create a group
# and account so it does not get later doubly allocated
#
virtual_uidgid = 10001
virtual_mailbox_uid_maps = static:$virtual_uidgid
virtual_mailbox_gid_maps = static:$virtual_uidgid
# With all domains final, no need for trusted clients
# All mail will accepted and delivered to local maildirs.
#
mynetworks =
smtpd_relay_restrictions = reject_unauth_destination
smtpd_recipient_restrictions = reject_unauth_destination
smtpd_client_restrictions =
smtpd_sender_restrictions =
smtpd_data_restrictions =
smtpd_end_of_data_restrictions =
header_checks =
nested_header_checks =
mime_header_checks =
# All the other address classes are now empty, but just
# in case bounce mail if this assumption fails.
#
content_filter =
transport_maps =
default_transport = error:5.1.2 Restricted destination
mydestination =
local_transport = $default_transport
alias_maps =
alias_database =
local_recipient_maps =
relay_domains =
relay_transport = $default_transport
relay_recipient_maps =
virtual_alias_domains =
virtual_alias_maps =
--
Viktor.