Emails receiving but not sending

So I can receive emails but I can’t send them.

My thunderbird says: Service unvailable - Please try again later
Here is a screen shot:

I am hosting it at my home

And here is my Email Log:

Nov 26 13:17:38 localhost postfix/postfix-script[6177]: warning: symlink leaves directory: /etc/postfix/./cert.pem
Nov 26 13:17:38 localhost postfix/postfix-script[6180]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
Nov 26 13:17:38 localhost postfix/postfix-script[6183]: warning: symlink leaves directory: /etc/postfix/./key.pem
Nov 26 13:17:38 localhost postfix/postfix-script[6351]: starting the Postfix mail system
Nov 26 13:17:38 localhost postfix/master[6353]: daemon started -- version 3.4.13, configuration /etc/postfix
Nov 26 13:17:38 localhost dovecot: master: Warning: Killed with signal 15 (by pid=6358 uid=0 code=kill)
Nov 26 13:17:40 localhost dovecot: master: Dovecot v2.3.7.2 (3c910f64b) starting up for imap, pop3 (core dumps disabled)
Nov 26 13:18:14 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=89.105.171.99, lip=192.168.188.90, mpid=6372, TLS, session=<8Vp3eF/u7sxZaatj>
Nov 26 13:18:14 localhost dovecot: pop3([email protected])<6372><8Vp3eF/u7sxZaatj>: Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=8844
Nov 26 13:18:17 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=89.105.171.99, lip=192.168.188.90, mpid=6374, TLS, session=<YrKueF/u8cxZaatj>
Nov 26 13:18:17 localhost dovecot: pop3([email protected])<6374><YrKueF/u8cxZaatj>: Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=8844
Nov 26 13:18:19 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=89.105.171.99, lip=192.168.188.90, mpid=6376, TLS, session=<o3HAeF/u88xZaatj>
Nov 26 13:18:19 localhost dovecot: pop3([email protected])<6376><o3HAeF/u88xZaatj>: Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=8844
Nov 26 13:18:20 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=89.105.171.99, lip=192.168.188.90, mpid=6378, TLS, session=<+H7VeF/u9cxZaatj>
Nov 26 13:18:20 localhost dovecot: pop3([email protected])<6378><+H7VeF/u9cxZaatj>: Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=8844
Nov 26 13:18:21 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=89.105.171.99, lip=192.168.188.90, mpid=6380, TLS, session=<8AzseF/u98xZaatj>
Nov 26 13:18:21 localhost dovecot: pop3([email protected])<6380><8AzseF/u98xZaatj>: Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=8844
Nov 26 13:18:23 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=89.105.171.99, lip=192.168.188.90, mpid=6382, TLS, session=<k57+eF/u+sxZaatj>
Nov 26 13:18:23 localhost dovecot: pop3([email protected])<6382><k57+eF/u+sxZaatj>: Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=8844
Nov 26 13:18:23 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=89.105.171.99, lip=192.168.188.90, mpid=6384, TLS, session=<KH4MeV/u+8xZaatj>
Nov 26 13:18:24 localhost dovecot: pop3([email protected])<6384><KH4MeV/u+8xZaatj>: Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=8844
Nov 26 13:18:24 localhost postfix/smtpd[6386]: connect from mail-ed1-f53.google.com[209.85.208.53]
Nov 26 13:18:24 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=89.105.171.99, lip=192.168.188.90, mpid=6391, TLS, session=<tZoYeV/u/cxZaatj>
Nov 26 13:18:24 localhost postfix/smtpd[6386]: TLS SNI blutudlut.us from mail-ed1-f53.google.com[209.85.208.53] not matched, using default chain
Nov 26 13:18:24 localhost dovecot: pop3([email protected])<6391><tZoYeV/u/cxZaatj>: Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=8844
Nov 26 13:18:25 localhost postfix/smtpd[6386]: 085AC1A311E: client=mail-ed1-f53.google.com[209.85.208.53]
Nov 26 13:18:25 localhost postfix/cleanup[6393]: 085AC1A311E: message-id=<CAAVUhhWTLONeXO7wNGPm0sULfc=BaL-czy+kh=WLGAkU5CWHvA@mail.gmail.com>
Nov 26 13:18:25 localhost opendkim[779]: 085AC1A311E: s=20210112 d=gmail.com a=rsa-sha256 SSL 
Nov 26 13:18:25 localhost postfix/qmgr[6357]: 085AC1A311E: from=<[email protected]>, size=2739, nrcpt=1 (queue active)
Nov 26 13:18:25 localhost postfix/pipe[6395]: 085AC1A311E: to=<[email protected]>, relay=dovecot, delay=0.45, delays=0.33/0.01/0/0.11, dsn=2.0.0, status=sent (delivered via dovecot service)
Nov 26 13:18:25 localhost postfix/qmgr[6357]: 085AC1A311E: removed
Nov 26 13:18:25 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=89.105.171.99, lip=192.168.188.90, mpid=6398, TLS, session=<jqskeV/u/sxZaatj>
Nov 26 13:18:25 localhost dovecot: pop3([email protected])<6398><jqskeV/u/sxZaatj>: Disconnected: Logged out top=0/0, retr=1/2989, del=0/4, size=11816
Nov 26 13:18:28 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=89.105.171.99, lip=192.168.188.90, mpid=6400, TLS, session=<UetSeV/uAM1Zaatj>
Nov 26 13:18:28 localhost dovecot: pop3([email protected])<6400><UetSeV/uAM1Zaatj>: Disconnected: Logged out top=0/0, retr=0/0, del=0/4, size=11816
Nov 26 13:18:44 localhost postfix/submission/smtpd[6401]: connect from node-pt089-105-171-099.infra.schwaz.net[89.105.171.99]
Nov 26 13:18:44 localhost postfix/submission/smtpd[6401]: 8ED0E1A311E: client=node-pt089-105-171-099.infra.schwaz.net[89.105.171.99], sasl_method=PLAIN, [email protected]
Nov 26 13:18:44 localhost postfix/cleanup[6393]: 8ED0E1A311E: message-id=<[email protected]>
Nov 26 13:18:44 localhost opendkim[779]: default._domainkey.blutudlut.us: key data is not secure: /etc can be read or written by other users
Nov 26 13:18:44 localhost opendkim[779]: 8ED0E1A311E: error loading key 'default._domainkey.blutudlut.us'
Nov 26 13:18:44 localhost postfix/cleanup[6393]: 8ED0E1A311E: milter-reject: END-OF-MESSAGE from node-pt089-105-171-099.infra.schwaz.net[89.105.171.99]: 4.7.1 Service unavailable - try again later; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.188.22]>
Nov 26 13:18:44 localhost postfix/submission/smtpd[6401]: disconnect from node-pt089-105-171-099.infra.schwaz.net[89.105.171.99] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=0/1 commands=6/7
Nov 26 13:18:57 localhost postfix/smtpd[6386]: disconnect from mail-ed1-f53.google.com[209.85.208.53] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=1 quit=1 commands=7
Nov 26 13:19:03 localhost postfix/submission/smtpd[6401]: connect from node-pt089-105-171-099.infra.schwaz.net[89.105.171.99]
Nov 26 13:19:04 localhost postfix/submission/smtpd[6401]: 4747E1A311E: client=node-pt089-105-171-099.infra.schwaz.net[89.105.171.99], sasl_method=PLAIN, [email protected]
Nov 26 13:19:04 localhost postfix/cleanup[6393]: 4747E1A311E: message-id=<[email protected]>
Nov 26 13:19:04 localhost opendkim[779]: default._domainkey.blutudlut.us: key data is not secure: /etc can be read or written by other users
Nov 26 13:19:04 localhost opendkim[779]: 4747E1A311E: error loading key 'default._domainkey.blutudlut.us'
Nov 26 13:19:04 localhost postfix/cleanup[6393]: 4747E1A311E: milter-reject: END-OF-MESSAGE from node-pt089-105-171-099.infra.schwaz.net[89.105.171.99]: 4.7.1 Service unavailable - try again later; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.188.22]>
Nov 26 13:19:04 localhost postfix/submission/smtpd[6401]: disconnect from node-pt089-105-171-099.infra.schwaz.net[89.105.171.99] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=0/1 commands=6/7

Welcome @blutudlut Happy you are here

chown -R opendkim:opendkim /etc/opendkim
chmod 0644 /etc/opendkim/keys/blutudlut.us/default.private
chmod 0750 /etc/opendkim/keys

Also check if opendkim is running netstat -nlp | grep 8891 to check if smtpd_milters = inet:127.0.0.1:8891 is running

Hello, thank you for your answer. Here is the output:
image

I made the changes. I’ll answer when the server has been restartet

Should I use port 587 or port 465 for the SMTP Server?

now its the same error

I went another time into the logs. Now it says:

can't load key from /etc/opendkim/keys/blutudlut.us/default.private: Permission denied

Sorry there was a mistake. Recheck the steps Emails receiving but not sending - #2 by josephgodwinke

The rules should be:

-rwx------ opendkim opendkim default.private
drwxr-xr-x opendkim opendkim opendkim
drwx------ opendkim opendkim keys

same error… :frowning:

Post the result of ls -l /etc/opendkim/keys/blutudlut.us/default.private

okay:

-rw------- 1 opendkim opendkim 1679 Nov 26 11:56 /etc/opendkim/keys/blutudlut.us/default.private

Sorry am multitasking i fixed it anc confirmed it here Emails receiving but not sending - #2 by josephgodwinke Run (using octal representation)

chmod 0644 /etc/opendkim/keys/blutudlut.us/default.private

Same problem too

oh wait should i restart the server?

Ok this is absurd let me straighten this up.

We want default.private to have -rw-r–r-- permission i.e is read, write for user, read for group

chmod 0640 /etc/opendkim/keys/blutudlut.us/default.private

wait lemme do it