Hi! i have ispconfig 3.2.5 on debian buster My network topology: public ip: 79.162.235.144 local ip: 172.16.3.10 port forwarding: 80, 8080, 25, 465, 587, 443 Open ports on the firewall (unifi): 80, 8080, 25, 465, 587, 443 Certyficat for smtp -> yes, from this tutorial: (...)tutorial/securing-ispconfig-3-with-a-free-lets-encrypt-ssl-certificate/ Server name: s1 Telnet: my server to outgoing serwer: port: 25 -> dont work port: 465 -> work port 587 -> work otugoing server to my server port: 25 -> work port: 465 -> work port 587 -> work I insteld rainloop -> it does not send mail outside the server on gmail i add email from my server -> all work (send, read) Error log is clear mail.info -> Code: Aug 1 16:57:26 s1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=172.16.3.10, lip=172.16.3.10, mpid=9933, TLS, session=<Vv3Dq4DIwtCsEAMK> Aug 1 16:57:26 s1 postfix/submission/smtpd[9934]: connect from s1.vfer.pl[172.16.3.10] Aug 1 16:57:26 s1 postfix/submission/smtpd[9934]: NOQUEUE: filter: RCPT from s1.vfer.pl[172.16.3.10]: <[email protected]>: Sender address triggers FILTER lmtp:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<poczta.kowalec.pl> Aug 1 16:57:26 s1 postfix/submission/smtpd[9934]: D98569C1F6B: client=s1.vfer.pl[172.16.3.10], sasl_method=PLAIN, [email protected] Aug 1 16:57:27 s1 postfix/cleanup[9938]: D98569C1F6B: message-id=<[email protected]> Aug 1 16:57:27 s1 postfix/qmgr[2031]: D98569C1F6B: from=<[email protected]>, size=1148, nrcpt=1 (queue active) Aug 1 16:57:27 s1 postfix/submission/smtpd[9934]: disconnect from s1.vfer.pl[172.16.3.10] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8 Aug 1 16:57:27 s1 dovecot: imap([email protected])<9933><Vv3Dq4DIwtCsEAMK>: Logged out in=966 out=555 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Aug 1 16:57:27 s1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=172.16.3.10, lip=172.16.3.10, mpid=9943, TLS, session=</fXMq4DI3tCsEAMK> Aug 1 16:57:27 s1 dovecot: imap([email protected])<9943></fXMq4DI3tCsEAMK>: Logged out in=90 out=1014 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Aug 1 16:57:27 s1 postfix/smtpd[9944]: connect from localhost.localdomain[127.0.0.1] Aug 1 16:57:27 s1 postfix/smtpd[9944]: B4DF79C1FC6: client=localhost.localdomain[127.0.0.1] Aug 1 16:57:27 s1 postfix/cleanup[9938]: B4DF79C1FC6: message-id=<[email protected]> Aug 1 16:57:27 s1 postfix/smtpd[9944]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5 Aug 1 16:57:27 s1 postfix/qmgr[2031]: B4DF79C1FC6: from=<[email protected]>, size=2217, nrcpt=1 (queue active) Aug 1 16:57:27 s1 amavis[1234]: (01234-04) Passed CLEAN {RelayedOutbound}, ORIGINATING LOCAL [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: 0XhPbHUIHTxV, Hits: -0.999, size: 1148, queued_as: B4DF79C1FC6, dkim_new=default:eoglaszamy.pl, 746 ms Aug 1 16:57:27 s1 postfix/lmtp[9939]: D98569C1F6B: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.97, delays=0.2/0.01/0.03/0.73, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10027): 250 2.0.0 Ok: queued as B4DF79C1FC6) Aug 1 16:57:27 s1 postfix/qmgr[2031]: D98569C1F6B: removed What is wrong?
Seems as if your ISP, the one which provides the internet connection for the server, blocks port 25. Contact your ISP and ask them if they block port 25. Some cloud providers like amazon block port 25 as well.
You can'ts end any emails directly if port 25 is blocked. What you might be able to do is using a relay server, you can find relay server settings under System > server config > mail. provide the relay server details there and you should be able to appends a port to the relay server like this "relay.server.tld:587".
Hi, I am sending information for posterity: What we need to set: On your ISPconfig server go to System -> server configuration -> select your server from the list, then go to MAIL -> fill in information about RelayHost: RelayHost address -> enter the address of the server where the outgoing mail works, e.g. example.com:587 User -> email user prepared on an external server Password -> password for this user We don't set anything else in ISPconfig! Then we go to the DNS settings of the domain - you need to change the settings of the domain from which you want to send - you need to add: 1. SPF subdomain: @ or * type: TXT value: v = spf1 a mx ip4: ip.your.sender.server ~ all 2. DMARC subdomain: _dmarc type: TXT value: v = DMARC1; p = none Then the emails should go nicely everywhere. best regards