Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +-----------------------------------------------------------------------------+
- | Grants for postfix@localhost |
- +-----------------------------------------------------------------------------+
- | GRANT USAGE ON *.* TO 'postfix'@'localhost' IDENTIFIED BY PASSWORD <secret> |
- | GRANT ALL PRIVILEGES ON `postfix`.* TO 'postfix'@'localhost' |
- +-----------------------------------------------------------------------------+
- +-------------------+
- | Tables_in_postfix |
- +-------------------+
- | alias |
- | comptes |
- | domaines |
- +-------------------+
- +-----------------------------------+---------------+-------+------+------+------+
- | email | password | quota | etat | imap | pop3 |
- +-----------------------------------+---------------+-------+------+------+------+
- | p-n@p-n.com | Zf8r245E1KNM | 0 | 1 | 1 | 1 |
- | p-n | QqR.0ITzYHvgI| 0 | 1 | 1 | 1 |
- +-----------------------------------+---------------+-------+------+------+------+
- envoi d'un mail depuis g mail:
- -------------------------------------------------------------------------------
- Aug 15 17:54:36 postserv postfix/smtpd[30933]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
- Aug 15 17:54:36 postserv postfix/smtpd[30933]: connect from mail-vk0-f50.google.com[209.85.213.50]
- Aug 15 17:54:36 postserv postfix/trivial-rewrite[30936]: warning: do not list domain p-n.com in BOTH mydestination and virtual_mailbox_domains
- Aug 15 17:54:36 postserv postfix/smtpd[30933]: warning: restriction `reject_authenticated_sender_login_mismatch' ignored: no SASL support
- Aug 15 17:54:36 postserv postfix/smtpd[30933]: warning: restriction `reject_unauthenticated_sender_login_mismatch' ignored: no SASL support
- Aug 15 17:54:36 postserv postfix/smtpd[30933]: warning: restriction `reject_authenticated_sender_login_mismatch' ignored: no SASL support
- Aug 15 17:54:36 postserv postfix/smtpd[30933]: NOQUEUE: reject: RCPT from mail-vk0-f50.google.com[209.85.213.50]: 550 5.1.1 <p-ne@p-n.com>: Recipient address rejected: User unknown in local recipient table; from=<sp.p@gmail.com> to=<p-n@p-n.com> proto=ESMTP helo=<mail-vk0-f50.google.com>
- Aug 15 17:54:36 postserv postfix/smtpd[30933]: disconnect from mail-vk0-f50.google.com[209.85.213.50]
- Aug 15 17:57:56 postserv postfix/anvil[30935]: statistics: max connection rate 1/60s for (smtp:209.85.213.50) at Aug 15 17:54:36
- Aug 15 17:57:56 postserv postfix/anvil[30935]: statistics: max connection count 1 for (smtp:209.85.213.50) at Aug 15 17:54:36
- Aug 15 17:57:56 postserv postfix/anvil[30935]: statistics: max cache size 1 at Aug 15 17:54:36
- -------------------------------------------------------------------------------------------------------
- main.cf
- #************************** 09.15.2015 *********************************
- #test:
- #append_dot_mydomain = yes
- append_at_myorigin = no
- debug_peer_level = 2
- delay_warning_time = 4h
- myhostname = postserv.p-n.com
- mydomain = p-n.com
- masquerade_domains = p-n.com
- mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
- #************************************************************************
- mynetworks = 127.0.0.1
- inet_protocols = ipv4
- inet_interfaces = all
- #myhostname = postserv
- #mydestination = localhost,panthere-noire.com,myhostname
- smtpd_banner = $myhostname ESMTP $mail_name (GNU)
- smtpd_helo_required = yes
- biff = no
- append_dot_mydomain = no
- mailbox_size_limit = 0
- append_dot_mydomain = no
- #Si aucun relayhost n'est renseigné, le courrier est routé directement
- #vers sa destination finale (champs MX)
- relayhost =
- #Ceci arrête certaines techniques utilisées pour obtenir des adresses mail.
- disable_vrfy_command = yes
- # Gestion des boites mails virtuelle par: mysql
- # mysql:/etc/postfix/mysql-virtual_aliases_comptes.cf
- virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_aliases.cf
- virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
- virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf
- # Le dossier ou seront contenu les mails
- virtual_mailbox_base = /var/spool/vmail/
- virtual_uid_maps = static:5000
- virtual_gid_maps = static:5000
- #utile ?
- # Séparateur entre le nom d'utilisateur et les extensions d'adresses
- recipient_delimiter = +
- smtpd_recipient_restrictions =
- permit_mynetworks,
- # permit_sasl_authenticated,
- reject_invalid_hostname,
- # reject_non_fqdn_sender,
- reject_non_fqdn_recipient,
- reject_unknown_recipient_domain,
- reject_invalid_helo_hostname,
- reject_unlisted_sender,
- reject_unknown_sender_domain,
- reject_sender_login_mismatch,
- reject_authenticated_sender_login_mismatch,
- reject_unauth_destination,
- reject_rbl_client sbl-xbl.spamhaus.org,
- reject_rbl_client
- zen.spamhaus.org,
- reject_rbl_client bl.spamcop.net,
- permit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement