Hello ^^)

Le 24/06/2021 à 14:47, IL Ka a écrit :

problem is that despite all the tutos I can read / use I can't get
Postfix to send any mail from that server to the outside. using
SSL ot not.


Hi.
1. Please show the last 20 messages from your ``mail.log``
2. ``postconf -n`` output please

see the joint piece :)


3. Did you change anything in your ``main.cf <http://main.cf>`` or do you use default configuration?

modified it as I wasn't getting any out mails, and for Secure sending mails from the server


4. What did you choose when installing postfix on debian? debconf usually asks you what type of configuration you want to have

I choose 'Internet Site'


Regards,

JF




 
# postconf -n
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
compatibility_level = 2
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
milter_macro_daemon_name = originating
mydestination = mydomain, localhost.mydomain, localhost
myhostname = mail.mydomain
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mynetworks_style = subnet
myorigin = /etc/mailname
notify_classes =
readme_directory = no
recipient_delimiter = +
relay_domains = $mydestination
relayhost = [smtp.externalserver]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_sasl_password_map
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = permit_sasl_authenticated, reject
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks 
reject_unauth_destination
smtpd_relay_restrictions = ${{$compatibility_level} < {1} ? {} : 
{permit_mynetworks permit_sasl_authenticated defer_unauth_destination}}
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = permit_mynetworks
smtpd_tls_cert_file = /etc/ssl/mydomain_ssl/mydomain.pem
smtpd_tls_key_file = /etc/ssl/mydomain_ssl/private/mydomain.key
smtpd_tls_security_level = encrypt
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_wrappermode = yes
smtpd_use_tls = yes

-------------------------------------------------------------

# aliases

# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: webmaster@mydomain

-------------------------------------------------------------

# /var/log/mail.log


Jun 24 12:50:53 amiga postfix/smtpd[26449]: connect from localhost[127.0.0.1]
Jun 24 12:53:14 amiga postfix/smtpd[26449]: SSL_accept error from 
localhost[127.0.0.1]: -1
Jun 24 12:53:14 amiga postfix/smtpd[26449]: warning: TLS library problem: 
error:1408F10B:SSL routines:ssl3_get_record:wrong version 
number:../ssl/record/ssl3_record.c:332:
Jun 24 12:53:14 amiga postfix/smtpd[26449]: lost connection after CONNECT from 
localhost[127.0.0.1]
Jun 24 12:53:14 amiga postfix/smtpd[26449]: disconnect from 
localhost[127.0.0.1] commands=0/0
Jun 24 12:53:24 amiga postfix/qmgr[26301]: 410391C80B6A: from=<root@mydomain>, 
size=343, nrcpt=1 (queue active)
Jun 24 12:53:24 amiga postfix/qmgr[26301]: DBF9D1C80B7B: from=<root@mydomain>, 
size=353, nrcpt=1 (queue active)
Jun 24 12:53:24 amiga postfix/error[26457]: 410391C80B6A: 
to=<customer@anywhere>, relay=none, delay=3261, delays=3261/0.02/0/0.07, 
dsn=4.4.1, status=deferred (delivery temporarily suspended: connect $
Jun 24 12:53:24 amiga postfix/error[26458]: DBF9D1C80B7B: 
to=<customer@anywhere>, relay=none, delay=455, delays=455/0.02/0/0.08, 
dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to$
Jun 24 12:54:18 amiga postfix/pickup[26300]: 7016C1C80B89: uid=0 
from=<root@mydomain>
Jun 24 12:54:18 amiga postfix/cleanup[26533]: 7016C1C80B89: 
message-id=<20210624105418.7016C1C80B89@mail.mydomain>
Jun 24 12:54:18 amiga postfix/qmgr[26301]: 7016C1C80B89: from=<root@mydomain>, 
size=353, nrcpt=1 (queue active)
Jun 24 12:54:22 amiga postfix/pickup[26300]: 320F91C80B8A: uid=0 
from=<root@mydomain>
Jun 24 12:54:22 amiga postfix/cleanup[26533]: 320F91C80B8A: 
message-id=<20210624105422.320F91C80B8A@mail.mydomain>
Jun 24 12:54:22 amiga postfix/qmgr[26301]: 320F91C80B8A: from=<root@mydomain>, 
size=357, nrcpt=1 (queue active)
Jun 24 12:54:22 amiga postfix/local[26539]: 320F91C80B8A: 
to=<webmaster@mydomain>, relay=local, delay=0.15, delays=0.09/0.01/0/0.05, 
dsn=5.1.1, status=bounced (unknown user: "webmaster")
Jun 24 12:54:22 amiga postfix/cleanup[26533]: 4AC1B1C80B8B: 
message-id=<20210624105422.4AC1B1C80B8B@mail.mydomain>
Jun 24 12:54:22 amiga postfix/bounce[26540]: 320F91C80B8A: sender non-delivery 
notification: 4AC1B1C80B8B
Jun 24 12:54:22 amiga postfix/qmgr[26301]: 4AC1B1C80B8B: from=<>, size=2258, 
nrcpt=1 (queue active)
Jun 24 12:54:22 amiga postfix/qmgr[26301]: 320F91C80B8A: removed
Jun 24 12:54:22 amiga postfix/local[26539]: 4AC1B1C80B8B: 
to=<webmaster@mydomain>, orig_to=<root@mydomain>, relay=local, delay=0.09, 
delays=0.04/0/0/0.04, dsn=5.1.1, status=bounced (unknown us$
Jun 24 12:54:22 amiga postfix/qmgr[26301]: 4AC1B1C80B8B: removed
Jun 24 12:54:48 amiga postfix/smtp[26534]: connect to mail.'external 
host'[external host IP]:25: Connection timed out
Jun 24 12:54:48 amiga postfix/smtp[26534]: 7016C1C80B89: 
to=<customer@anywhere>, relay=none, delay=30, delays=0.1/0.01/30/0, dsn=4.4.1, 
status=deferred (connect to mail.'external host'[external host IP]:25: Co$
Jun 24 12:56:38 amiga postfix/smtpd[26812]: connect from localhost[127.0.0.1]
Jun 24 12:57:15 amiga postfix/smtpd[26812]: SSL_accept error from 
localhost[127.0.0.1]: -1
Jun 24 12:57:15 amiga postfix/smtpd[26812]: warning: TLS library problem: 
error:1408F10B:SSL routines:ssl3_get_record:wrong version 
number:../ssl/record/ssl3_record.c:332:
Jun 24 12:57:15 amiga postfix/smtpd[26812]: lost connection after CONNECT from 
localhost[127.0.0.1]
Jun 24 12:57:15 amiga postfix/smtpd[26812]: disconnect from 
localhost[127.0.0.1] commands=0/0
Jun 24 12:58:24 amiga postfix/qmgr[26301]: DF4B31C80B70: from=<root@mydomain>, 
size=343, nrcpt=1 (queue active)
Jun 24 12:58:24 amiga postfix/qmgr[26301]: ACD741C80B56: from=<root@mydomain>, 
size=353, nrcpt=1 (queue active)
Jun 24 12:58:24 amiga postfix/qmgr[26301]: BABBC1C80AFB: from=<root@mydomain>, 
size=343, nrcpt=1 (queue active)
Jun 24 12:58:24 amiga postfix/qmgr[26301]: 70C5D1C80B7F: from=<root@mydomain>, 
size=353, nrcpt=1 (queue active)
Jun 24 12:58:24 amiga postfix/qmgr[26301]: 3282B1C80B7A: from=<root@mydomain>, 
size=353, nrcpt=1 (queue active)
Jun 24 12:58:54 amiga postfix/smtp[26833]: connect to mail.'external 
host'[external host IP]:25: Connection timed out
Jun 24 12:58:54 amiga postfix/smtp[26832]: connect to mail.'external 
host'[external host IP]:25: Connection timed out
Jun 24 12:58:54 amiga postfix/smtp[26834]: connect to mail.'external 
host'[external host IP]:25: Connection timed out
Jun 24 12:58:54 amiga postfix/smtp[26835]: connect to mail.'external 
host'[external host IP]:25: Connection timed out
Jun 24 12:58:54 amiga postfix/smtp[26836]: connect to mail.'external 
host'[external host IP]:25: Connection timed out
Jun 24 12:58:54 amiga postfix/smtp[26833]: ACD741C80B56: 
to=<customer@anywhere>, relay=none, delay=624, delays=593/0.02/30/0, dsn=4.4.1, 
status=deferred (connect to mail.'external host'[external host IP]:25: C$
Jun 24 12:58:54 amiga postfix/smtp[26835]: 70C5D1C80B7F: 
to=<customer@anywhere>, relay=none, delay=1097, delays=1067/0.04/30/0, 
dsn=4.4.1, status=deferred (connect to mail.'external host'[external host 
IP]:25:$
Jun 24 12:58:54 amiga postfix/smtp[26834]: BABBC1C80AFB: 
to=<customer@anywhere>, relay=none, delay=5028, delays=4998/0.03/30/0, 
dsn=4.4.1, status=deferred (connect to mail.'external host'[external host 
IP]:25:$
Jun 24 12:58:54 amiga postfix/smtp[26836]: 3282B1C80B7A: 
to=<customer@anywhere>, relay=none, delay=1320, delays=1290/0.05/30/0, 
dsn=4.4.1, status=deferred (connect to mail.'external host'[external host 
IP]:25:$
Jun 24 12:58:54 amiga postfix/smtp[26832]: DF4B31C80B70: 
to=<customer@anywhere>, relay=none, delay=3267, delays=3237/0.02/30/0, 
dsn=4.4.1, status=deferred (connect to mail.'external host'[external host 
IP]:25:$
Jun 24 13:03:24 amiga postfix/qmgr[26301]: DBF9D1C80B7B: from=<root@mydomain>, 
size=353, nrcpt=1 (queue active)
Jun 24 13:03:24 amiga postfix/qmgr[26301]: 7016C1C80B89: from=<root@mydomain>, 
size=353, nrcpt=1 (queue active)
Jun 24 13:03:24 amiga postfix/error[26862]: DBF9D1C80B7B: 
to=<customer@anywhere>, relay=none, delay=1055, delays=1055/0.02/0/0.06, 
dsn=4.4.1, status=deferred (delivery temporarily suspended: connect $
Jun 24 13:03:24 amiga postfix/error[26863]: 7016C1C80B89: 
to=<customer@anywhere>, relay=none, delay=546, delays=546/0.02/0/0.07, 
dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to$
Jun 24 13:06:07 amiga postfix/pickup[26300]: 7DC8C1C80B8B: uid=0 
from=<root@mydomain>
Jun 24 13:06:07 amiga postfix/cleanup[26873]: 7DC8C1C80B8B: 
message-id=<20210624110607.7DC8C1C80B8B@mail.mydomain>
Jun 24 13:06:07 amiga postfix/qmgr[26301]: 7DC8C1C80B8B: from=<root@mydomain>, 
size=357, nrcpt=1 (queue active)
Jun 24 13:06:07 amiga postfix/local[26875]: 7DC8C1C80B8B: 
to=<webmaster@mydomain>, relay=local, delay=0.13, delays=0.07/0.01/0/0.06, 
dsn=5.1.1, status=bounced (unknown user: "webmaster")
Jun 24 13:06:07 amiga postfix/cleanup[26873]: 96BBB1C80B8C: 
message-id=<20210624110607.96BBB1C80B8C@mail.mydomain>
Jun 24 13:06:07 amiga postfix/bounce[26876]: 7DC8C1C80B8B: sender non-delivery 
notification: 96BBB1C80B8C
Jun 24 13:06:07 amiga postfix/qmgr[26301]: 96BBB1C80B8C: from=<>, size=2258, 
nrcpt=1 (queue active)
Jun 24 13:06:07 amiga postfix/qmgr[26301]: 7DC8C1C80B8B: removed
Jun 24 13:06:07 amiga postfix/local[26875]: 96BBB1C80B8C: 
to=<webmaster@mydomain>, orig_to=<root@mydomain>, relay=local, delay=0.07, 
delays=0.03/0/0/0.03, dsn=5.1.1, status=bounced (unknown us$
Jun 24 13:06:07 amiga postfix/qmgr[26301]: 96BBB1C80B8C: removed
Jun 24 13:06:12 amiga postfix/pickup[26300]: 86A7F1C80B8B: uid=0 
from=<root@mydomain>
Jun 24 13:06:12 amiga postfix/cleanup[26873]: 86A7F1C80B8B: 
message-id=<20210624110612.86A7F1C80B8B@mail.mydomain>
Jun 24 13:06:12 amiga postfix/qmgr[26301]: 86A7F1C80B8B: from=<root@mydomain>, 
size=353, nrcpt=1 (queue active)
Jun 24 13:06:12 amiga postfix/smtp[26881]: 86A7F1C80B8B: 
to=<customer@anywhere>, relay=smtp.free.fr[2a01:e0c:1::25]:25, delay=0.22, 
delays=0.07/0.01/0.04/0.1, dsn=2.0.0, status=sent (250 2.0.0 Ok: qu$
Jun 24 13:06:12 amiga postfix/qmgr[26301]: 86A7F1C80B8B: removed
Jun 24 13:07:41 amiga postfix/postfix-script[27114]: warning: symlink leaves 
directory: /etc/postfix/./makedefs.out
Jun 24 13:07:42 amiga postfix/postfix-script[27219]: warning: symlink leaves 
directory: /etc/postfix/./makedefs.out
Jun 24 13:08:27 amiga postfix/smtpd[27512]: connect from localhost[127.0.0.1]
Jun 24 13:13:24 amiga postfix/qmgr[26301]: ACD741C80B56: from=<root@mydomain>, 
size=353, nrcpt=1 (queue active)
Jun 24 13:13:24 amiga postfix/qmgr[26301]: 7016C1C80B89: from=<root@mydomain>, 
size=353, nrcpt=1 (queue active)
Jun 24 13:13:24 amiga postfix/smtp[27566]: ACD741C80B56: 
to=<customer@anywhere>, relay=smtp.free.fr[2a01:e0c:1::25]:25, delay=1494, 
delays=1494/0.02/0.04/0.08, dsn=2.0.0, status=sent (250 2.0.0 Ok: q$
Jun 24 13:13:24 amiga postfix/qmgr[26301]: ACD741C80B56: removed
Jun 24 13:13:24 amiga postfix/smtp[27567]: 7016C1C80B89: 
to=<customer@anywhere>, relay=smtp.free.fr[2a01:e0c:1::25]:25, delay=1146, 
delays=1146/0.02/0.08/0.06, dsn=2.0.0, status=sent (250 2.0.0 Ok: q$
Jun 24 13:13:24 amiga postfix/qmgr[26301]: 7016C1C80B89: removed
Jun 24 13:13:27 amiga postfix/smtpd[27512]: SSL_accept error from 
localhost[127.0.0.1]: Connection timed out
Jun 24 13:13:27 amiga postfix/smtpd[27512]: lost connection after CONNECT from 
localhost[127.0.0.1]
Jun 24 13:13:27 amiga postfix/smtpd[27512]: disconnect from 
localhost[127.0.0.1] commands=0/0


Reply via email to