Bonjour / Bonsoir a tous !
Aujourd’hui sur mon vps debian 8 64bit j’essaie d’installer un serveur mail.
Tout est niquel, check de postfix ne retourne rien de mauvais, les logs non plus,
Mais lorsque je fait ces commandes :
telnet 127.0.0.1 25
ehlo mon-domaine.fr
(le ehlo ne retourne pas de mal, look logs a la fin)
mail from<test@test.com>
(Visiblement dans le poste il n’affiche pas les “<>” mais elles y sont bien !
rcpt to:<contact@mon-domaine.fr> (Pareil ici)
PAF !
Temporary lookup failure !
Donc j’ai look le mail.log
et je ne comprend pas trop ._.
Il me dit que mon main.cf n’existe pas dans /etc/postfix, mais il y est bien…
Je ne fais pas vraiment quels fichiers vous mettre ici alors je vais tout vous mettre, ainsi que les commandes que j’ai fait, (évidemment en cachant certaines choses)
main.cf (désolé j’ai pas trouvé de bouton pour mettre un spoiler alors si la mise en forme n’est pas correcte faites le moi savoir s’il vous plait ^^) :
biff = no
disable_vrfy_command = yes
smtpd_helo_required = yes
append_dot_mydomain = no
myhostname = MonReverseDNS.in-addr.arpa
myorigin = MonReverseDNS.in-addr.arpa
mydestination = MonReverseDNS.in-addr.arpa, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8, L'ipDeMaMachine
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_aliases.cf,mysql:/etc/postfix/mysql-virtual_aliases_comptes.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domaines.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf
virtual_mailbox_base = /var/spool/vmail/
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sender_restrictions =
permit_mynetworks,
warn_if_reject reject_unverified_sender
smtpd_recipient_restrictions =
permit_mynetworks,
reject_unauth_destination,
reject_non_fqdn_recipient
smtpd_client_restrictions =
permit_mynetworks
mysql-virtual_aliases.cf :
hosts = 127.0.0.1
user = postfix
password = LePasswordDeLUserPostfix
dbname = postfix
table = alias
select_field = destination
where_field = source
additional_conditions = AND etat=1
mysql-virtual_aliases_comptes.cf :
hosts = 127.0.0.1
user = postfix
password = LePasswordDeLUserPostfix
dbname = postfix
table = comptes
select_field = email
where_field = email
additional_conditions = AND etat=1
mysql-virtual_comptes.cf :
hosts = 127.0.0.1
user = postfix
password = LePasswordDeLUserPostfix
dbname = postfix
table = comptes
select_field = CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
where_field = email
additional_conditions = AND etat=1
mysql-virtual_domaines.cf :
hosts = 127.0.0.1
user = postfix
password = LePasswordDeLUserPostfix
dbname = postfix
select_field = 'virtual'
table = domaines
where_field = domaine
additional_conditions = AND etat=1
mysql-virtual_quotas.cf
hosts = 127.0.0.1
user = postfix
password = LePasswordDeLUserPostfix
dbname = postfix
table = comptes
select_field = quota
where_field = email
mail.log (désolé il est très long :x ) :
Dec 16 14:39:01 vps17 postfix/sendmail[10851]: fatal: open /etc/postfix/main.cf: No such file or directory
Dec 16 15:09:03 vps17 postfix/postdrop[11721]: warning: unable to look up public/pickup: No such file or directory
Dec 16 15:10:25 vps17 postfix/master[11876]: daemon started -- version 2.11.3, configuration /etc/postfix
Dec 16 15:10:25 vps17 postfix/pickup[11883]: A9D78F9624F: uid=0 from=<root>
Dec 16 15:10:25 vps17 postfix/cleanup[11896]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' to database 'postfix'
Dec 16 15:10:25 vps17 postfix/cleanup[11896]: warning: mysql:/etc/postfix/mysql-virtual_aliases.cf lookup error for "root@MonReverseDNS.in-addr.arpa"
Dec 16 15:10:25 vps17 postfix/cleanup[11896]: warning: A9D78F9624F: virtual_alias_maps map lookup problem for root@MonReverseDNS.in-addr.arpa -- message not accepted, t$
Dec 16 15:11:25 vps17 postfix/pickup[11883]: BB464F9624F: uid=0 from=<root>
Dec 16 15:11:25 vps17 postfix/cleanup[11896]: warning: mysql:/etc/postfix/mysql-virtual_aliases.cf lookup error for "root@MonReverseDNS.in-addr.arpa"
Dec 16 15:11:25 vps17 postfix/cleanup[11896]: warning: BB464F9624F: virtual_alias_maps map lookup problem for root@MonReverseDNS.in-addr.arpa -- message not accepted, t$
Dec 16 15:12:25 vps17 postfix/pickup[11883]: C9DD9F9624F: uid=0 from=<root>
Dec 16 15:12:25 vps17 postfix/cleanup[11896]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' to database 'postfix'
Dec 16 15:12:25 vps17 postfix/cleanup[11896]: warning: mysql:/etc/postfix/mysql-virtual_aliases.cf lookup error for "root@MonReverseDNS.in-addr.arpa"
Dec 16 15:12:25 vps17 postfix/cleanup[11896]: warning: C9DD9F9624F: virtual_alias_maps map lookup problem for root@MonReverseDNS.in-addr.arpa -- message not accepted, t$
Dec 16 15:13:25 vps17 postfix/pickup[11883]: D4FEFF9624F: uid=0 from=<root>
Dec 16 15:13:25 vps17 postfix/cleanup[11896]: warning: mysql:/etc/postfix/mysql-virtual_aliases.cf lookup error for "root@MonReverseDNS.in-addr.arpa"
Dec 16 15:13:25 vps17 postfix/cleanup[11896]: warning: D4FEFF9624F: virtual_alias_maps map lookup problem for root@MonReverseDNS.in-addr.arpa -- message not accepted, t$
Dec 16 15:14:25 vps17 postfix/pickup[11883]: E3048F9624F: uid=0 from=<root>
Dec 16 15:14:25 vps17 postfix/cleanup[11896]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' to database 'postfix'
Dec 16 15:14:25 vps17 postfix/cleanup[11896]: warning: mysql:/etc/postfix/mysql-virtual_aliases.cf lookup error for "root@144.91.59.37.in-addr.arpa"
Dec 16 15:14:25 vps17 postfix/cleanup[11896]: warning: E3048F9624F: virtual_alias_maps map lookup problem for root@MonReverseDNS.in-addr.arpa -- message not accepted, t$
Dec 16 15:15:25 vps17 postfix/pickup[11883]: F217EF9624F: uid=0 from=<root>
Dec 16 15:15:25 vps17 postfix/cleanup[11896]: warning: mysql:/etc/postfix/mysql-virtual_aliases.cf lookup error for "root@144.91.59.37.in-addr.arpa"
Dec 16 15:15:25 vps17 postfix/cleanup[11896]: warning: F217EF9624F: virtual_alias_maps map lookup problem for root@MonReverseDNS.in-addr.arpa -- message not accepted, t$
Dec 16 15:16:26 vps17 postfix/pickup[11883]: 0C7D7F9624F: uid=0 from=<root>
Dec 16 15:16:26 vps17 postfix/cleanup[11896]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' to database 'postfix'
Dec 16 15:16:26 vps17 postfix/cleanup[11896]: warning: mysql:/etc/postfix/mysql-virtual_aliases.cf lookup error for "root@MonReverseDNS.in-addr.arpa"
Dec 16 15:16:26 vps17 postfix/cleanup[11896]: warning: 0C7D7F9624F: virtual_alias_maps map lookup problem for root@MonReverseDNS.in-addr.arpa -- message not accepted, t$
Dec 16 15:17:26 vps17 postfix/pickup[11883]: 1B741F9624F: uid=0 from=<root>
Dec 16 15:17:26 vps17 postfix/cleanup[11896]: warning: mysql:/etc/postfix/mysql-virtual_aliases.cf lookup error for "root@MonReverseDNS.in-addr.arpa"
Dec 16 15:17:26 vps17 postfix/cleanup[11896]: warning: 1B741F9624F: virtual_alias_maps map lookup problem for root@MonReverseDNS.in-addr.arpa -- message not accepted, t$
Dec 16 15:18:26 vps17 postfix/pickup[11883]: 29A6FF9624F: uid=0 from=<root>
Dec 16 15:18:26 vps17 postfix/cleanup[11896]: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' to database 'postfix'
Dec 16 15:18:26 vps17 postfix/cleanup[11896]: warning: mysql:/etc/postfix/mysql-virtual_aliases.cf lookup error for "root@MonReverseDNS.in-addr.arpa"
Dec 16 15:18:26 vps17 postfix/cleanup[11896]: warning: 29A6FF9624F: virtual_alias_maps map lookup problem for root@MonReverseDNS.in-addr.arpa -- message not accepted, t$
Dec 16 15:19:26 vps17 postfix/pickup[11883]: 3757AF9624F: uid=0 from=<root>
Dec 16 15:19:26 vps17 postfix/cleanup[11896]: warning: mysql:/etc/postfix/mysql-virtual_aliases.cf lookup error for "root@MonReverseDNS.in-addr.arpa"
Dec 16 15:19:26 vps17 postfix/cleanup[11896]: warning: 3757AF9624F: virtual_alias_maps map lookup problem for root@MonReverseDNS.in-addr.arpa -- message not accepted, t$
Encore désolé si la mise en page est très mauvaise, je n’ai vraiment pas trouvé de spoiler.
J’ai essayé de cacher en maximum l’ip du vps etc, mais bon après tout si j’ai oublié quelque chose ce n’est pas grave.
Merci d’avance et bonne lecture !