Catchall mail box


(Michele Bortolotto) #1

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…


(Artem Fedai) #2

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

(Michele Bortolotto) #3

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:


(Artem Fedai) #4

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


(Artem Fedai) #5

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

(Michele Bortolotto) #6

it doesn’t work no bcc to postoffice


(Artem Fedai) #7

Hi what is in log ?
show please

postconf | grep bcc


(Michele Bortolotto) #8
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 =

(Michele Bortolotto) #9

uhm probably for outgoin’ we want sender_bcc afik


(Artem Fedai) #10

oh sorry I read it from phone


(Artem Fedai) #11

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