AbsyntH
(Michele Bortolotto)
September 30, 2015, 1:18pm
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…
Nas
(Artem Fedai)
September 30, 2015, 6:16pm
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
AbsyntH
(Michele Bortolotto)
September 30, 2015, 8:02pm
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
Nas
(Artem Fedai)
September 30, 2015, 8:21pm
4
no prob with it make custom template , i could help
Nas
(Artem Fedai)
September 30, 2015, 9:17pm
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
2 Likes
AbsyntH
(Michele Bortolotto)
October 1, 2015, 2:23pm
6
it doesn’t work no bcc to postoffice
Nas
(Artem Fedai)
October 1, 2015, 6:42pm
7
Hi what is in log ?
show please
postconf | grep bcc
AbsyntH
(Michele Bortolotto)
October 2, 2015, 7:13am
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 =
AbsyntH
(Michele Bortolotto)
October 2, 2015, 7:15am
9
uhm probably for outgoin’ we want sender_bcc afik
Nas
(Artem Fedai)
October 2, 2015, 2:37pm
10
oh sorry I read it from phone
Nas
(Artem Fedai)
October 2, 2015, 5:20pm
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