Bonjour,
Je gère plusieurs domaines.
J’ai tout configuré postfixadmin, MySql, postfix et dovecot.
Voici le message d’erreur quand j’envoie un mail depuis ma messagerie du domaine vers la perso. Mais aussi je ne reçois rien sur cette boîte mail.
J’ai fait un tail pendant mon envoie de mail
tail -f /var/log/dovecot.log
Oct 03 18:08:06 pop3(alain@mondomain.uk)<173880><UfgaEtIGquAAAAAAAAAAAAAAAAAAAAAB>: Fatal: master: service(pop3): child 173880 killed with signal 6 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps).
Par contre quand je fais echo ça fonctionne bien.
echo test de message | mail -s Test envoie de messagerie alain@mondomain.uk
Mais quand je reçois un mail du root sur ma messagerie perso, voici ce que je reçois :
root@mail.mondomain.uk
Et je voudrais recevoir sous la forme
root@mondomain.uk
Je vous mets ma configuration
Voici la configuration de postfix main.cf :
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
compatibility_level = 3.6
config_directory = /etc/postfix
debug_peer_list = 127.0.0.1
dovecot_destination_recipient_limit = 1
home_mailbox = Maildir/
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
maillog_file = /var/log/postfix.log
message_size_limit = 4194304
mydestination = $myhostname, localhost.mondomain.uk, localhost
myhostname = mail.mondomain.uk
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = $myhostname
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost =
smtp_tls_CApath = /etc/ssl/certs
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_recipient_restrictions = permit_mynetworks
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_tls_cert_file = /etc/letsencrypt/live/mail.mondomain.uk/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/mail.mondomain.uk/privkey.pem
smtpd_tls_security_level = may
smtpd_use_tls = yes
Je donne aussi mon fichier master. cf
root@mail:/etc/dovecot# grep -E -v '(^#|^$)' /etc/postfix/master.cf
smtp inet n - y - - smtpd
submission inet n - y - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
submissions inet n - y - - smtpd
-o syslog_name=postfix/submissions
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
pickup unix n - y 60 1 pickup
cleanup unix n - y - 0 cleanup
qmgr unix n - n 300 1 qmgr
tlsmgr unix - - y 1000? 1 tlsmgr
rewrite unix - - y - - trivial-rewrite
bounce unix - - y - 0 bounce
defer unix - - y - 0 bounce
trace unix - - y - 0 bounce
verify unix - - y - 1 verify
flush unix n - y 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - y - - smtp
relay unix - - y - - smtp
-o syslog_name=postfix/$service_name
showq unix n - y - - showq
error unix - - y - - error
retry unix - - y - - error
discard unix - - y - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - y - - lmtp
anvil unix - - y - 1 anvil
scache unix - - y - 1 scache
postlog unix-dgram n - n - 1 postlogd
maildrop unix - n n - - pipe
flags=DRXhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FRX user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
dovecot unix - n n - - pipe
flags=DRhu user=mail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}
Et mon fichier local.conf
root@mail:/etc/dovecot# grep -E -v '(^#|^$)' /etc/dovecot/local.conf
disable_plaintext_auth = yes
auth_mechanisms = plain login
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
debug_log_path = /var/log/dovecot-debug.log
auth_verbose = yes
auth_debug = yes
mail_debug = yes
verbose_ssl = yes
mail_location = maildir:/var/mail/%d/%n/Maildir/
namespace inbox {
inbox = yes
}
# c'est utilisateurs et groupe qui accede aux mails
mail_uid=mail
mail_gid=vmail
#Identifiant utisateur linux valides pour se connecter
first_valid_uid = 8
last_valid_uid = 8
first_valid_gid = 5000
last_valid_gid = 5000
mail_privileged_group = vmail
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
}
service pop3-login {
inet_listener pop3 {
port = 110
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
service submission-login {
inet_listener submission {
#port = 587
}
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
mode = 0600
user = postfix
group = postfix
}
}
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
group = postfix
}
unix_listener auth-userdb {
mode = 0600
user = mail
}
user = dovecot
}
service auth-worker {
user = mail
}
service dict {
unix_listener dict {
}
}
service stats {
unix_listener stats-reader {
user = mail
group = vmail
mode = 0660
}
unix_listener stats-writer {
user = mail
group = vmail
mode = 0660
}
}
ssl = required
ssl_cert = </etc/letsencrypt/live/mail.mondomain.uk/fullchain.pem
ssl_key = </etc/letsencrypt/live/mail.mondomain.uk/privkey.pem
ssl_min_protocol = TLSv1.2
ssl_cipher_list = ECDHE-ECDSA-AES128-G..........
ssl_prefer_server_ciphers = no
passdb {
driver = sql
args = /etc/dovecot/local-sql.conf.ext
}
userdb {
driver = static ## Don't forget to change this
args = uid=mail gid=vmail home=/var/mail/%d/%n/Maildir
}
Voici mon fichier de configuration de ma base sql local.sql.conf.
root@mail:/etc/dovecot# grep -E -v '(^#|^$)' /etc/dovecot/local-sql.conf.ext
driver = mysql
connect = host=ipfailover dbname=PostfiX user=postfix password=postfix
password_query = \
SELECT username as user, password \
FROM mailbox WHERE username = '%u' AND active = 1;
Pouvez-vous m’éclaircir pourquoi je ne reçois pas et je ne peux pas envoyer de message depuis mon domaine ?
Merci
Alain