i don't know what is a postfix SMTP session .
I tested a telnet SMTP session and there is an error i didn't see before :

$ telnet IPPIPIPIPIP 25
Trying IPPIPIPIPIP...
Connected to IPPIPIPIPIP.
Escape character is '^]'.
220 domain ESMTP Postfix (sderrt)
HELO domain
250 domain
MAIL FROM: <testeur@domain>
250 2.1.0 Ok
RCPT TO: <testeur@domain>
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: Example Message
From: testeur@domain
To: testeur@domain
Hello !
test message
.
250 2.0.0 Ok: queued as BAE6541404
QUIT
221 2.0.0 Bye

the error on mailq :

-Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
C645C402C7      299 Sat May 13 15:04:21  testeur@domain
(temporary failure. Command output: sendmail: fatal: open /etc/postfix/
main.cf: Permission denied)
                                         testeur@domain

the mail.log part :

                                         May 13 15:05:02 mail
postfix/qmgr[92952]: C645C402C7: from=<testeur@domain>, size=299, nrcpt=1
(queue active)
May 13 15:05:02 mail postfix/sendmail[97459]: fatal: open /etc/postfix/
main.cf: Permission denied
May 13 15:05:02 mail postfix/pipe[97458]: C645C402C7: to=<testeur@domain>,
relay=spamassassin, delay=41, delays=41/0.01/0/0.27, dsn=4.3.0,
status=deferred (temporary failure. Command output: sendmail: fatal: open
/etc/postfix/main.cf: Permission denied )
May 13 15:05:06 mail postfix/smtpd[97388]: disconnect from
serveurmail.reseaustarinux[172.20.0.105] helo=1 mail=1 rcpt=1 data=1 quit=1
commands=5

my postfix directory rights :

# ls -hla /etc/postfix/
total 136K
drwxr-x--- 6 root root 4.0K May 12 17:40 .
drwxr-xr-x 1 root root 4.0K May 12 17:42 ..
-rw-r--r-- 1 root root  100 May 12 17:37 dynamicmaps.cf
drw-r--r-- 2 root root 4.0K Jan 22 02:17 dynamicmaps.cf.d
-rw-r--r-- 1 root root 3.6K May 12 17:40 main.cf
-rw-r--r-- 1 root root  27K May 12 17:36 main.cf.proto
lrwxrwxrwx 1 root root   31 May 12 17:36 makedefs.out ->
/usr/share/postfix/makedefs.out
-rw-r--r-- 1 root root 7.7K May 12 17:40 master.cf
-rw-r--r-- 1 root root 6.2K May 12 17:36 master.cf.proto
-rw-r--r-- 1 root root  30K Jan 22 02:17 post-install
-rw-r--r-- 1 root root  11K Jan 22 02:17 postfix-files
drw-r--r-- 2 root root 4.0K May 12 17:37 postfix-files.d
-rw-r--r-- 1 root root  12K Jan 22 02:17 postfix-script
drw-r--r-- 2 root root 4.0K May 12 17:42 sasl
drw-r--r-- 2 root root 4.0K May 12 17:39 virtual

Le sam. 13 mai 2023 à 14:27, Wietse Venema via Postfix-users <
postfix-users@postfix.org> a écrit :

> Patrice Go via Postfix-users:
> > sorry, the message was sent before i finished it.
> > When i connect, there's no output on logs.
> > There's output just when I send a message , by example :
> >
> > https://paste.debian.net/1280153/
>
> That is Postfix loggging where it receives a test message, and
> delivers that message voa LMTP.
>
> This demonstrates that Postfix is receiving and delivering email.
>
>         Wietse
> _______________________________________________
> Postfix-users mailing list -- postfix-users@postfix.org
> To unsubscribe send an email to postfix-users-le...@postfix.org
>
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to