Catchall mail box

Hi, i need to set up a mailbox ( postoffice@FQDN ) that fetch all mails from the MX and that is in BCC for all outgoing replyes

this is my fetchmailrc configuration:

set postmaster “postoffice”

poll mail.FQDN protocol pop3:
username “info@FQDN” password “Password1” is “postoffice” here sslproto ‘’;
username “postoffice@FQDN” password “Password2” is “postoffice” here sslproto ‘’;
username “management@FQDN” password “Password3” is “postoffice” here sslproto ‘’;
…etc…

and i’ve setup in /etc/postfix/bcc_maps

info@FQDN postoffice@FQDN
management@FQDN postoffice@FQDN
sales_dept@FQDN postoffice@FQDN

…etc…

there are options to copy incoming and outgoing mail separatly

sender_bcc_maps = hash:/etc/postfix/sen
recipient_bcc_maps = hash:/etc/postfix/rec

threr is an option to copy all

always_bcc = hash:/etc/postfix/all

yep i know how it works on postfix, the example is for the actual server configuration, now i’ve to migrate it to nethserver :smiley:

no prob with it :slight_smile: make custom template , i could help :slight_smile:

so i make custom teplate :
mkdir -p /etc/e-smith/templates-custom/etc/postfix/recipient_bcc
cd /etc/e-smith/templates-custom/etc/postfix/recipient_bcc && touch 11recipientbcc
vi /etc/e-smith/templates-custom/etc/postfix/recipient_bcc/11recipientbcc

#
# 11 resipient bcc 
#
info@FQDN                postoffice@FQDN
management@FQDN          postoffice@FQDN
sales_dept@FQDN          postoffice@FQDN

then run :

signal-event nethserver-mail-server-update
2 Likes

it doesn’t work no bcc to postoffice

Hi what is in log ?
show please

postconf | grep bcc

postconf | grep bcc

always_bcc =
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps $sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps $alias_maps
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
sender_bcc_maps =

uhm probably for outgoin’ we want sender_bcc afik

oh sorry I read it from phone

only for U i have implemented those new feature :

so it was quite new for me)

SO workaround:

touch /etc/e-smith/events/nethserver-mail-server-save/templates2expand/etc/postfix/sender_bcc
touch /etc/e-smith/events/nethserver-mail-server-update/templates2expand/etc/postfix/sender_bcc

vi /etc/e-smith/templates/postfix/postmap/30mail_server

{
    #
    # 30mail_server
    #

    push @postmapList, qw(
        internal_access
        recipient_bcc
        virtual
        aliases
        sender_bcc
    );
    '';
}

mkdir -p /etc/e-smith/templates-custom/etc/postfix/sender_bcc/11bcc

info@FQDN               postoffice@FQDN
management@FQDN         postoffice@FQDN

signal-event nethserver-mail-server-save