dataset/seed/postfix-relay/DEBUG.md

58 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2022-03-08 19:42:28 +01:00
# recherche d'un utilisateur :
```
USER=gnunux@gnunux.info
su - postfix -s /bin/bash -c "postmap -q $USER ldap:/etc/postfix/ldapsource.cf"
```
Doit retourner le nom de l'utilisateur.
Il est possible de demander le mode verbeux :
```
su - postfix -s /bin/bash -c "postmap -vq $USER ldap:/etc/postfix/ldapsource.cf"
```
# Test with telnet
EHLO root.gnunux.info
[..]
250-AUTH PLAIN LOGIN
[..]
MAIL FROM:<gnunux@gnunux.info>
2022-10-01 19:24:39 +02:00
RCPT TO:<contact@silique.fr>
2022-03-08 19:42:28 +01:00
DATA
To:<gnunux@gnunux.info>
From:<gnunux@gnunux.info>
Subject:SMTP Test
This is a test message
.
# auth with telnet
echo -ne '\000gnunux@gnunux.info\000password' | openssl base64
openssl s_client -connect 192.168.45.13:25 -starttls smtp
EHLO client.example.com
[..]
AUTH PLAIN AGdudW51eEBnbnVudXguaW5mbwBxVV96Vl9kbEUzUm82WmpTcjFHOGNzbmd4ajA=
235 2.7.0 Authentication successful
# Un élément de configuration
postconf maillog_file
# Editer la configuration
postconf maillog_file=/dev/stdout
2022-03-20 21:15:45 +01:00
# Test mail en ligne
https://www.mail-tester.com/
https://dkimvalidator.com/
2022-08-18 10:19:43 +02:00
# debug mail :
journalctl -m -u postfix -g address mail
# get date
journalctl -m -u postfix --since "2022-07-31 23:14:04"