Hi all, Find the logs. I am still learning postfix and therefore cannot figure out the problems. Kindly assist:
Do you wish to issue a Let's encrypt certificate for this domain? [y/N] y aosars.com is inaccessible, please verify! root@aosars:~# echo "Test Email message body" | mail -s "Email test subject" aos arsafrica.com root@aosars:~# sudo tail /var/log/mail.log Mar 24 20:08:18 aosars postfix/smtp[4277]: warning: relayhost configuration problem Mar 24 20:08:18 aosars postfix/smtp[4277]: 3ABE9E221A: to=<ari...@gmail.com>, relay=none, delay=25676, delays=25676/0.03/0/0, dsn=4.3.5, status=deferred (Host or domain name not found. Name service error for name= smtp.example.com type=AAAA: Host not found) Mar 24 20:10:16 aosars postfix/pickup[4117]: F15DCE2316: uid=0 from=< r...@aosars.com> Mar 24 20:10:16 aosars postfix/cleanup[4420]: F15DCE2316: message-id=<2023032420 1016.f15dce2...@aosars.com> Mar 24 20:10:16 aosars postfix/qmgr[1218]: F15DCE2316: from=<r...@aosars.com>, s ize=357, nrcpt=1 (queue active) Mar 24 20:10:17 aosars postfix/smtp[4422]: cannot load Certification Authority d ata, CAfile="/etc/postfix/cacert.pem", CApath="/etc/ssl/certs": disabling TLS su pport Mar 24 20:10:17 aosars postfix/smtp[4422]: warning: TLS library problem: error:0 4800066:PEM routines::bad end line:../crypto/pem/pem_lib.c:875: Mar 24 20:10:17 aosars postfix/smtp[4422]: warning: TLS library problem: error:0 5880009:x509 certificate routines::PEM lib:../crypto/x509/by_file.c:234: Mar 24 20:10:17 aosars postfix/smtp[4422]: warning: relayhost configuration prob lem Mar 24 20:10:17 aosars postfix/smtp[4422]: F15DCE2316: to=<aosarsafrica.com@afri ca.aosars>, orig_to=<aosarsafrica.com>, relay=none, delay=0.03, delays=0.01/0.01 /0/0, dsn=4.3.5, status=deferred (Host or domain name not found. Name service er ror for name=smtp.example.com type=AAAA: Host not found) On Fri, 24 Mar 2023 at 16:56, Ralf Hildebrandt via Postfix-users < postfix-users@postfix.org> wrote: > * Aosars Repository via Postfix-users <postfix-users@postfix.org>: > > Hi all, > > I have installed postfix on Ubuntu server 22 and configured to use gmail > > smtp.But it fails to send mails. > > The log should inform you why it's failing. > > I have a config snippet here: > > main.cf: > > smtp_use_tls=yes > > relayhost = smtp.gmail.com:587 > # we want to relay all mails via smtp.gmail.com (port 587) > > smtp_sasl_auth_enable = yes > # we need username password for that > > smtp_sasl_password_maps = hash:/etc/postfix/sasl_password_maps > # username password are stored in /etc/postfix/sasl_password_maps > > /etc/postfix/sasl_password_maps contains: > > smtp.gmail.com > my-gmail-addr...@gmail.com:theapplicationspecificpasswordforthisserver > > -- > Ralf Hildebrandt > Geschäftsbereich IT | Abteilung Netzwerk > Charité - Universitätsmedizin Berlin > Campus Benjamin Franklin > Hindenburgdamm 30 | D-12203 Berlin > Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 > ralf.hildebra...@charite.de | https://www.charite.de > > _______________________________________________ > 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