Dns seems good now but nothing work on smtp I tested to sent an email on roundcube and I have error 250 I changed the roundcube config by this $config['smtp_server'] = 'localhost'; #$config['smtp_server'] = 'tls://ns320556.ip-94-23-7.eu'; // SMTP port. Use 25 for cleartext, 465 for Implicit TLS, or 587 for STARTTLS (default) #$config['smtp_port'] = 587; $config['smtp_port'] = 25; error disappear on roundcube I have no error, tail -f syslog seems to work fine. But I do not receive the email on gmail, yahoo or other domain.
Via Rounducbe: port 25 : Green message : ok but the mail does not arrive inside my other webmail (gmail, yahoo ...) port 587 : red message : error 550 Code: Jan 3 09:59:24 nsXXXXX postfix/smtpd[1348600]: connect from localhost[127.0.0.1] Jan 3 09:59:24 nsXXXXX postfix/smtpd[1348600]: NOQUEUE: filter: RCPT from localhost[127.0.0.1]: <[email protected]>: Sender address triggers FILTER lmtp:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<www.XXXXX.org> Jan 3 09:59:24 nsXXXXX postfix/smtpd[1348600]: 4ADEB4C00EE2: client=localhost[127.0.0.1], sasl_method=LOGIN, [email protected] Jan 3 09:59:24 nsXXXXX postfix/cleanup[1352371]: 4ADEB4C00EE2: message-id=<[email protected]> Jan 3 09:59:24 nsXXXXX postfix/qmgr[1140934]: 4ADEB4C00EE2: from=<[email protected]>, size=617, nrcpt=1 (queue active) Jan 3 09:59:24 nsXXXXX postfix/lmtp[1352349]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused Jan 3 09:59:24 nsXXXXX postfix/smtpd[1348600]: disconnect from localhost[127.0.0.1] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6 Jan 3 09:59:24 nsXXXXX dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1352444, secured, session=<Wo85B/y37ot/AAAB> Jan 3 09:59:24 nsXXXXX postfix/lmtp[1352349]: 4ADEB4C00EE2: to=<[email protected]>, relay=none, delay=0.1, delays=0.1/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused) Jan 3 09:59:24 nsXXXXX dovecot: imap([email protected])<1352444><Wo85B/y37ot/AAAB>: Logged out in=456 out=704 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Jan 3 09:59:25 nsXXXXX dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1352446, secured, session=<JcpJB/y38ot/AAAB> Jan 3 09:59:25 nsXXXXX dovecot: imap([email protected])<1352446><JcpJB/y38ot/AAAB>: Logged out in=70 out=689 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Jan 3 09:59:26 nsXXXXX dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1352449, secured, session=<GaFVB/y39It/AAAB> Jan 3 09:59:26 nsXXXXX dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1352450, secured, session=<PM5VB/y39ot/AAAB> Jan 3 09:59:26 nsXXXXX dovecot: imap([email protected])<1352450><PM5VB/y39ot/AAAB>: Logged out in=120 out=822 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Jan 3 09:59:26 nsXXXXX dovecot: imap([email protected])<1352449><GaFVB/y39It/AAAB>: Logged out in=324 out=3184 deleted=0 expunged=0 trashed=0 hdr_count=4 hdr_bytes=1136 body_count=0 body_bytes=0 Jan 3 10:00:02 nXXXXXX postfix/smtpd[1348600]: connect from localhost[127.0.0.1] Jan 3 10:00:02 nXXXXXX postfix/smtpd[1348600]: lost connection after CONNECT from localhost[127.0.0.1] Jan 3 10:00:02 nXXXXXX postfix/smtpd[1348600]: disconnect from localhost[127.0.0.1] commands=0/0 Jan 3 10:00:02 nXXXXXX dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<fLt5Cfy3AIx/AAAB> Jan 3 10:00:02 nXXXXXX dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<f795Cfy35r5/AAAB> Jan 3 10:00:07 nXXXXXX postfix/smtpd[1348600]: connect from localhost[127.0.0.1] Jan 3 10:00:07 nXXXXXX postfix/smtpd[1348600]: lost connection after CONNECT from localhost[127.0.0.1] Jan 3 10:00:07 nXXXXXX postfix/smtpd[1348600]: disconnect from localhost[127.0.0.1] commands=0/0 Jan 3 10:00:07 nXXXXXX dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<vuXNCfy3DIx/AAAB> Jan 3 10:00:07 nXXXXXX dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<M+fNCfy38r5/AAAB> Jan 3 10:00:26 nXXXXXX dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1352948, secured, session=<h03zCvy3Fox/AAAB> Jan 3 10:00:26 nXXXXXX dovecot: imap([email protected])<1352948><h03zCvy3Fox/AAAB>: Logged out in=90 out=977 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 port 587 Code: Jan 3 10:05:15 nsxxxxxxx postfix/submission/smtpd[1353219]: connect from localhost[127.0.0.1] Jan 3 10:05:15 nsxxxxxxx postfix/submission/smtpd[1353219]: disconnect from localhost[127.0.0.1] ehlo=1 quit=1 commands=2
the Roundcube config with the different approach in comment Code: // For example %n = mail.domain.tld, %t = domain.tld $config['smtp_server'] = 'localhost'; #$config['smtp_server'] = 'tls://nsXXXXXX.ip-XX-XX-7.eu'; #$config['smtp_server'] = 'tls://localhost'; // SMTP port. Use 25 for cleartext, 465 for Implicit TLS, or 587 for STARTTLS (> $config['smtp_port'] = 587; #$config['smtp_port'] = 25; // SMTP username (if required) if you use %u as the username Roundcube // will use the current username for login $config['smtp_user'] = '%u'; // SMTP password (if required) if you use %p as the password Roundcube // will use the current user's password for login $config['smtp_pass'] = '%p'; // provide an URL where a user can get support for this Roundcube installation // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE! $config['support_url'] = ''; // Name your service. This is displayed on the login screen and in the window t> $config['product_name'] = 'Roundcube Webmail'; // This key is used to encrypt the users imap password which is stored // in the session record. For the default cipher method it must be // exactly 24 characters long. // YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS $config['des_key'] = 'bTgDgpbkXXXXXXXXXX4C2'; // List of active plugins (in plugins/ directory) // Debian: install roundcube-plugins first to have any $config['plugins'] = array( ); // skin name: folder from skins/ $config['skin'] = 'elastic';
When using port 587, the smtp_server needs tls:// in front of it. But if it is on the same host, using port 25 without encryption is fine.
Yes but the email does not go my google email or yahoo for example with port 25. I have a green message but nothing at the end.
Yes amavis is running I restart postfix, amavis, send email on port 25, nothing arrives in my Gmail or yahoo I can receive an email, not send.
The most recent logs show amavis was not running, so if you have resolved that, send a new message and post the current logs. I infer that only external mail fails, is that correct? (Ie. using roundcube you can email other local mailboxes and the mail is delivered?)
"you can email other local mailboxes and the mail is delivered?" When I start amavis, I have not message
I restart today ma server restart amavis : sudo service amavis restart send email into 2 mailboxin my server via rounduce ==> Green message Nothing happen in other mailbox There the log of mail.log Code: Jan 6 08:17:22 xxxxxxx postfix/smtpd[1809]: connect from localhost[127.0.0.1] Jan 6 08:17:22 xxxxxxx postfix/smtpd[1809]: NOQUEUE: filter: RCPT from localhost[127.0.0.1]: <[email protected]>: Sender address triggers FILTER lmtp:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<www.xxxxxxxn.com> Jan 6 08:17:22 xxxxxxx postfix/smtpd[1809]: 96AB64C00E18: client=localhost[127.0.0.1], sasl_method=LOGIN, [email protected] Jan 6 08:17:22 xxxxxxx postfix/cleanup[3065]: 96AB64C00E18: message-id=<[email protected]> Jan 6 08:17:22 xxxxxxx postfix/qmgr[1721]: 96AB64C00E18: from=<[email protected]>, size=625, nrcpt=1 (queue active) Jan 6 08:17:22 xxxxxxx postfix/smtpd[1809]: disconnect from localhost[127.0.0.1] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6 Jan 6 08:17:22 xxxxxxx postfix/lmtp[3067]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused Jan 6 08:17:22 xxxxxxx dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3070, secured, session=<NMHd8za4BJV/AAAB> Jan 6 08:17:22 xxxxxxx postfix/lmtp[3067]: 96AB64C00E18: to=<[email protected]>, relay=none, delay=0.1, delays=0.09/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused) Jan 6 08:17:22 xxxxxxx dovecot: imap([email protected])<3070><NMHd8za4BJV/AAAB>: Logged out in=461 out=704 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Jan 6 08:17:24 xxxxxxx dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3074, secured, session=<DLHz8za4CpV/AAAB> Jan 6 08:17:24 xxxxxxx dovecot: imap([email protected])<3074><DLHz8za4CpV/AAAB>: Logged out in=70 out=689 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Jan 6 08:17:26 xxxxxxx dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3076, secured, session=<sbcY9Da4DJV/AAAB> Jan 6 08:17:26 xxxxxxx dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3078, secured, session=<slgZ9Da4DpV/AAAB> Jan 6 08:17:26 xxxxxxx dovecot: imap([email protected])<3078><slgZ9Da4DpV/AAAB>: Logged out in=120 out=822 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Jan 6 08:17:26 xxxxxxx dovecot: imap([email protected])<3076><sbcY9Da4DJV/AAAB>: Logged out in=318 out=2392 deleted=0 expunged=0 trashed=0 hdr_count=2 hdr_bytes=847 body_count=0 body_bytes=0 In rouncube/sendmail.log . It seems the mail is put in queue but after ????? I have this Code: [06-Jan-2021 08:09:58 +0000]: <42g3fdou> User [email protected] [89.251.254.233]; Message <[email protected]> for [email protected]; 250: 2.0.0 Ok: queued as 1BFD64C019A0 [06-Jan-2021 08:11:56 +0000]: <fl3me606> User [email protected] [89.251.254.233]; Message <[email protected]> for [email protected]; 250: 2.0.0 Ok: queued as 072F84C00DEC [06-Jan-2021 08:17:22 +0000]: <fl3me606> User [email protected] [89.251.254.233]; Message <[email protected]> for [email protected]; 250: 2.0.0 Ok: queued as 96AB64C00E18
What is the status of amavis? Code: systemctl status amavis Which ports are listening? Code: sudo netstat -tulpn | grep LISTEN
Code: /var/log/roundcube# systemctl status amavis ● /var/log/roundcube# systemctl status amavis ● amavis.service - Interface between MTA and virus scanner/content filters Loaded: loaded (/lib/systemd/system/amavis.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2021-01-06 08:11:05 UTC; 2h 23min ago Docs: http://www.ijs.si/software/amavisd/#doc Process: 2725 ExecStartPre=/usr/bin/find /var/lib/amavis -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS) Process: 2726 ExecStartPre=/usr/bin/find /var/lib/amavis/tmp -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS) Main PID: 2727 (/usr/sbin/amavi) Tasks: 3 (limit: 19157) Memory: 95.2M CGroup: /system.slice/amavis.service ├─2727 /usr/sbin/amavisd-new (master) ├─2735 /usr/sbin/amavisd-new (ch4-avail) └─2736 /usr/sbin/amavisd-new (ch4-avail) Jan 06 08:11:06 nsxxxxxx amavis[2727]: No decoder for .swf Jan 06 08:11:06 nsxxxxxx amavis[2727]: No decoder for .zoo Jan 06 08:57:56 nsxxxxxx amavis[2736]: (02736-01) Passed CLEAN {RelayedOpenRelay}, [127.0.0.1] [54.36.36.53] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: 2ZMMPqscmKM4, Hits> Jan 06 09:02:37 nsxxxxxx amavis[2735]: (02735-01) Passed CLEAN {RelayedOpenRelay}, [127.0.0.1] [185.15.51.198] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: rVvhmHG_S0Fa, Hits: -, size: 118011, queued_> Jan 06 09:04:09 nsxxxxxx amavis[2736]: (02736-02) Passed CLEAN {RelayedOpenRelay}, [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: DGEl_QHSMjES, Hits: -, size: 1013, queued> Jan 06 09:04:12 nsxxxxxx amavis[2735]: (02735-02) Passed CLEAN {RelayedOpenRelay}, [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: SSix7bSs6PoP, Hits: -, size: 1878, queued> Jan 06 09:12:57 nsxxxxxx amavis[2736]: (02736-03) Passed CLEAN {RelayedOpenRelay}, [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: nS7g-ZVzTAbq, Hits: -, size: 1009, queued_a> Jan 06 10:10:27 nsxxxxxx amavis[2735]: (02735-03) Passed CLEAN {RelayedOpenRelay}, [127.0.0.1] [213.251.155.210] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: KreBhFCb5V_3, Hits: -, size: 33010, queued_as: > Jan 06 10:14:41 nsxxxxxx amavis[2736]: (02736-04) Passed CLEAN {RelayedOpenRelay}, [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: FnSLU0te6ue9, Hits: -, size: 997, queued _as: > Jan 06 10:14:46 nsxxxxxx amavis[2735]: (02735-04) Passed CLEAN {RelayedOpenRelay}, [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: gWjlQ5wk-ZP4, Hits: -, size: 1870, queued> lines 1-24/24 (END) sudo netstat -tulpn | grep LISTEN Code: tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 729/dovecot tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 729/dovecot tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 1223/postgrey --pid tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 2727/amavisd-new (m tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 1719/master tcp 0 0 127.0.0.1:10027 0.0.0.0:* LISTEN 1719/master tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 1719/master tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 739/memcached tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 729/dovecot tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 729/dovecot tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 1719/master tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1788/pure-ftpd (SER tcp 0 0 94.23.7.166:53 0.0.0.0:* LISTEN 740/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 740/named tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 701/systemd-resolve tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 869/sshd: /usr/sbin tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1719/master tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 740/named tcp6 0 0 :::443 :::* LISTEN 1393/apache2 tcp6 0 0 :::993 :::* LISTEN 729/dovecot tcp6 0 0 :::995 :::* LISTEN 729/dovecot tcp6 0 0 ::1:10024 :::* LISTEN 2727/amavisd-new (m tcp6 0 0 :::3306 :::* LISTEN 945/mysqld tcp6 0 0 :::587 :::* LISTEN 1719/master tcp6 0 0 :::110 :::* LISTEN 729/dovecot tcp6 0 0 :::143 :::* LISTEN 729/dovecot tcp6 0 0 :::8080 :::* LISTEN 1393/apache2 tcp6 0 0 :::80 :::* LISTEN 1393/apache2 tcp6 0 0 :::465 :::* LISTEN 1719/master tcp6 0 0 :::8081 :::* LISTEN 1393/apache2 tcp6 0 0 :::21 :::* LISTEN 1788/pure-ftpd (SER tcp6 0 0 fe80::225:90ff:fe22::53 :::* LISTEN 740/named tcp6 0 0 2001:41d0:2:8a6::1:53 :::* LISTEN 740/named tcp6 0 0 ::1:53 :::* LISTEN 740/named tcp6 0 0 :::22 :::* LISTEN 869/sshd: /usr/sbin tcp6 0 0 :::25 :::* LISTEN 1719/master tcp6 0 0 ::1:953 :::* LIST
I do not know if it's a problem, But when I send an email there is no information in amavis For example, I have 2 different email and domain on my server, I send an email via roundcube via one domain to another domain, and I look systemctl status amavis, I do not see nothing about the email.
Take a look at https://www.linuxquestions.org/ques...ing-but-no-port-10024-and-10026-a-4175681871/ Your amavis is not listening on port 10026 as you can see in the errors.
Thank you. etc/amavis/50_user I have this inet_socket_port = [10024,10026]; #$inet_socket_bind = '127.0.0.1'; I tried to add $inet_socket_bind = '127.0.0.1'; but it do work How to open or check port the port 10026. Code: systemctl status amavis ● amavis.service - Interface between MTA and virus scanner/content filters Loaded: loaded (/lib/systemd/system/amavis.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2021-01-06 13:32:55 UTC; 11min ago Docs: http://www.ijs.si/software/amavisd/#doc Process: 22944 ExecStartPre=/usr/bin/find /var/lib/amavis -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS) Process: 22945 ExecStartPre=/usr/bin/find /var/lib/amavis/tmp -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS) Main PID: 22946 (/usr/sbin/amavi) Tasks: 3 (limit: 19157) Memory: 63.7M CGroup: /system.slice/amavis.service ├─22946 /usr/sbin/amavisd-new (master) ├─22954 /usr/sbin/amavisd-new (virgin child) └─22955 /usr/sbin/amavisd-new (virgin child) Jan 06 13:32:56 ns320556 amavis[22946]: No decoder for .F Jan 06 13:32:56 ns320556 amavis[22946]: No decoder for .doc Jan 06 13:32:56 ns320556 amavis[22946]: No decoder for .iso Jan 06 13:32:56 ns320556 amavis[22946]: No decoder for .jar Jan 06 13:32:56 ns320556 amavis[22946]: No decoder for .lha Jan 06 13:32:56 ns320556 amavis[22946]: No decoder for .lrz Jan 06 13:32:56 ns320556 amavis[22946]: No decoder for .rar Jan 06 13:32:56 ns320556 amavis[22946]: No decoder for .rpm Jan 06 13:32:56 ns320556 amavis[22946]: No decoder for .swf Jan 06 13:32:56 ns320556 amavis[22946]: No decoder for .zoo
When I start amavis I have no message. If you know a specific command t to check amavis and 10026 me know, will tell you the result How to open or check port the port 10026.