BCC Mail Backup for postfix

Source: Internet
Author: User
Tags all mail

The restrictions on sending attachments are:

The total capacity of the user's mailbox. For example: User mailbox is 10M, you can not send him a 11M large attachment.

The size of the upload file that is set in PHP. For example: PHP set the maximum upload file for 10M, you can not upload more than 10M files through any PHP Web program, so you can not upload more than 10M files when attached.

PHP configuration file is/etc/php.ini, need to adjust the parameters are mainly:

Upload_max_filesize

Post_max_size

Increase their values appropriately and restart the Apache service.

(Apachectl-k Graceful)

Someone asked:

As if not just for this reason, my upload_max_filesize set is 10m,post_max_size set is 12M, but I use extmail he hint I can't more than 5m,webmail haven't tested, I try

Reply:

Extmail settings need to modify the/VAR/WWW/EXTSUITE/EXTMAIL/WEBMAIL.CF, find the ' sys_message_size_limit ' parameter, change it to the size you want.

The 10M attachment size algorithm is:

10M * 1024 * 1024

Can be calculated using the BC command: #bc (quit on exit), the resulting value is written into the Extmail configuration.

Note: Extmail default is 5m,iredmail to adjust him to 10M.

This allows you to upload a set size attachment, but you may still not be able to send it, and then modify the/ETC/POSTFIX/MAIN.CF

Locate Message_size_limit to modify its size, and then restart Postfix:/etc/init.d/postfix Stop/start.

OK, you can transfer large attachments.

Postfix full-domain bcc (auto-forward/mail Backup) settings


Postfix's BCC function allows all messages that are postfix queued to be sent to the specified mailbox according to the criteria.

Postfix with three BCC parameters:

①, ALWAYS_BCC: All mail is backed up to the designated mailbox;

②, Sender_bcc_maps: The message that the recipient contains in the map file is assigned to the designated mailbox;

③, Recipient_bcc_maps: The message that the recipient contains in the map file is assigned to the specified mailbox.

1. Use of Recipient_bcc_maps and Sender_bcc_maps

# VI/ETC/POSTFIX/MAIN.CF #增加下面两行

Recipient_bcc_maps = HASH:/ETC/POSTFIX/RECIPIENT_BCC

Sender_bcc_maps = HASH:/ETC/POSTFIX/SENDER_BCC

# Cat SENDER_BCC

[Email protected] [Email protected]

# Cat RECIPIENT_BCC

[Email protected] [Email protected]

#postmap/ETC/POSTFIX/SENDER_BCC

#postmap/ETC/POSTFIX/RECIPIENT_BCC

#/etc/init.d/postfix Reload

2. How to use ALWAYS_BCC

# VI/ETC/POSTFIX/MAIN.CF #增加下面一行

ALWAYS_BCC = [email protected]

#/etc/init.d/postfix Reload

======================


Three settings related to Bcc in main.cf

Parameter meaning

Sender_bcc_maps e-mails sent through postfix

Recipient_bcc_maps messages received via Postfix

ALWAYS_BCC Any messages that are sent and received through Postfix. Parameters are separate * one * e-mail address

Attention:


If you set the BCC for the entire domain and a single BCC for a user in the domain, only the BCC of the domain will take effect.

BCC does not support multiple addresses, only a single address.

How to Set

If your postfix manages multiple mail domains, you want to forward all incoming and outgoing messages to an address, and use ALWAYS_BCC for a simple configuration.

Edit/ETC/POSTFIX/MAIN.CF, join

ALWAYS_BCC = [email protected]

If you need to set different forwarding addresses for different domains, forward only for individual users, or just save incoming letters, you can only use Sender_bcc_maps and recipient_bcc_maps.

Edit/ETC/POSTFIX/MAIN.CF, join

Sender_bcc_maps = Hash:/etc/postfix/sender_bcc_maps

Recipient_bcc_maps = Hash:/etc/postfix/recipient_bcc_maps

Then set up/etc/postfix/sender_bcc_maps and/etc/postfix/recipient_bcc_maps

# # User # #

#[email protected] [email protected]

#[email protected] [email protected]

# # whole Domain # #

#@a.org [email protected]

#@b.org [email protected]


Depending on your needs, you can set it to a whole domain or a single user

You need to generate a hash db after editing, otherwise postfix cannot read the configuration file

Postmap Hash:/etc/postfix/sender_bcc_maps

Postmap Hash:/etc/postfix/recipient_bcc_maps

Finally execute the postfix reload overloaded configuration file and your changes will take effect

PS: Do not forget to receive the mailbox quota or simply do not set a limit, or the mailbox is full after the incoming is overwhelming return letter.

===

Can build 2 domains a normal use of the domain an archived domain, the same name is different. Better operation of batch accounts


BCC Mail Backup for postfix

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.