Email : cannot send emails but I can receive

hello I have a problem that I cannot send emails but I can receive them the same problem on all the domains hosted on my space thank you

SYSTEM INFORMATION
OS type and version REQUIRED
Webmin version REQUIRED
Virtualmin version REQUIRED
Related packages SUGGESTED

Check your mail queue they might be getting stuck there

1 Like

Thank you for your response but I’m sure the email is already out, please see the photo

That just indicates that the webmail client (Roundcube) has copied the message to the “Sent” folder of Roundcube. That is not the same as it actually leaving the server’s queue. Try sending a test mail using the Usermin for the user.

Virtualmin -> Edit Users then select the user then the button “Login to Usermin” create your test message then send it.

1 Like

I think it’s the same problem thank you for seeing the photo I see that the emails are already on the send box parked like they are already sent but on the person box which one it is it is addressed to I have received nothing

First. Go to your dashboard and click on the ‘clipboard icon’ at the top right. Then paste that information into your original text. We really do want to know the information on your system.

Second. Where is your server located. If you are trying this from a home server your provider is probably blocking port 25. They may, or may not, open that for you. Regardless, you will never have reliable email service to a home server.

I think legit providers also block port 25 unless you use their panel to unblock it. Amazon only opens web and ssh traffic by default, I think.

1 Like

for the hypothesis of the server it is a vps even it is not powerful but it is to test and get an idea on your system if it suits me I must take a powerful server of course because I have more than 40 accounts and after migrating all my data to your system
thank you for seeing the photo

SYSTEM INFORMATION
OS type and version Debian Linux 12
Webmin version 2.105
Usermin version 2.005
Virtualmin version 7.8.2 Pro
Theme version 21.09.5
Package updates Tous les packages installés sont à jour
![Capture d’écran 2023-11-26 à 16.57.36 690x378](upload://3eeBfAD1jqonERYNf4r4L9SX0GD.png)

so is the mail queue empty ?
webmin->servers->postfix mail server->mail queue


what is the contents of the server log at the point you send the email ?
webmin->system->system logs

1 Like

1 :
print() on unopened filehandle DEBUG at ./mailbox-lib.pl line 1619, line 44.
print() on unopened filehandle DEBUG at ./mailbox-lib.pl line 1619, line 39.
Argument “” isn’t numeric in array element at /usr/share/usermin/mailbox/send_mail.cgi line 23.
[26/Nov/2023:15:34:46 +0000] Reloading configuration
[26/Nov/2023:15:34:45 +0000] Reloading configuration
[26/Nov/2023:15:34:45 +0000] PAM authentication enabled
[26/Nov/2023:15:34:45 +0000] Using SHA512 module Crypt::SHA
[26/Nov/2023:15:34:45 +0000] Using MD5 module Digest::MD5
[26/Nov/2023:15:34:45 +0000] miniserv.pl started
[26/Nov/2023:15:34:43 +0000] Shutting down
[26/Nov/2023:15:34:43 +0000] Shutting down
[26/Nov/2023:15:30:45 +0000] PAM authentication enabled
[26/Nov/2023:15:30:45 +0000] Using SHA512 module Crypt::SHA
[26/Nov/2023:15:30:45 +0000] Using MD5 module Digest::MD5
[26/Nov/2023:15:30:45 +0000] miniserv.pl started
[26/Nov/2023:15:30:42 +0000] Restarting
[26/Nov/2023:15:01:22 +0000] PAM authentication enabled
[26/Nov/2023:15:01:22 +0000] Using SHA512 module Crypt::SHA
[26/Nov/2023:15:01:22 +0000] Using MD5 module Digest::MD5
[26/Nov/2023:15:01:22 +0000] miniserv.pl started
[25/Nov/2023:23:36:34 +0000] PAM authentication enabled
[25/Nov/2023:23:36:34 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:23:36:34 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:23:36:34 +0000] miniserv.pl started
[25/Nov/2023:23:36:31 +0000] Restarting
[25/Nov/2023:14:36:01 +0000] PAM authentication enabled
[25/Nov/2023:14:36:01 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:14:36:01 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:14:36:01 +0000] miniserv.pl started
[25/Nov/2023:14:35:58 +0000] Restarting
[25/Nov/2023:14:35:50 +0000] PAM authentication enabled
[25/Nov/2023:14:35:50 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:14:35:50 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:14:35:50 +0000] miniserv.pl started
[25/Nov/2023:14:35:47 +0000] Restarting
[25/Nov/2023:14:34:50 +0000] PAM authentication enabled
[25/Nov/2023:14:34:50 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:14:34:50 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:14:34:50 +0000] miniserv.pl started
[25/Nov/2023:14:34:47 +0000] Restarting
[25/Nov/2023:14:34:32 +0000] PAM authentication enabled
[25/Nov/2023:14:34:32 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:14:34:32 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:14:34:32 +0000] miniserv.pl started
[25/Nov/2023:14:34:29 +0000] Restarting
[25/Nov/2023:14:30:03 +0000] Reloading configuration
[25/Nov/2023:13:56:24 +0000] PAM authentication enabled
[25/Nov/2023:13:56:24 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:13:56:24 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:13:56:24 +0000] miniserv.pl started
[25/Nov/2023:13:56:21 +0000] Restarting
[25/Nov/2023:13:29:14 +0000] PAM authentication enabled
[25/Nov/2023:13:29:14 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:13:29:14 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:13:29:14 +0000] miniserv.pl started
[25/Nov/2023:13:28:43 +0000] Shutting down
[25/Nov/2023:03:29:13 +0000] PAM authentication enabled
[25/Nov/2023:03:29:13 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:03:29:13 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:03:29:13 +0000] miniserv.pl started
[25/Nov/2023:03:29:09 +0000] Restarting
[25/Nov/2023:03:01:04 +0000] PAM authentication enabled
[25/Nov/2023:03:01:04 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:03:01:04 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:03:01:04 +0000] miniserv.pl started
[25/Nov/2023:03:01:01 +0000] Restarting
[25/Nov/2023:01:55:20 +0000] PAM authentication enabled
[25/Nov/2023:01:55:20 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:01:55:20 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:01:55:20 +0000] miniserv.pl started
[25/Nov/2023:01:55:17 +0000] Restarting
[25/Nov/2023:01:49:35 +0000] PAM authentication enabled
[25/Nov/2023:01:49:35 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:01:49:35 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:01:49:35 +0000] miniserv.pl started

2:

[26/Nov/2023:15:31:05 +0000] PAM authentication enabled
[26/Nov/2023:15:31:05 +0000] Using SHA512 module Crypt::SHA
[26/Nov/2023:15:31:05 +0000] Using MD5 module Digest::MD5
[26/Nov/2023:15:31:05 +0000] IPv6 support enabled
[26/Nov/2023:15:31:05 +0000] miniserv.pl started
[26/Nov/2023:15:31:03 +0000] Shutting down
[26/Nov/2023:15:01:22 +0000] PAM authentication enabled
[26/Nov/2023:15:01:22 +0000] Using SHA512 module Crypt::SHA
[26/Nov/2023:15:01:22 +0000] Using MD5 module Digest::MD5
[26/Nov/2023:15:01:22 +0000] IPv6 support enabled
[26/Nov/2023:15:01:22 +0000] miniserv.pl started
[26/Nov/2023:12:58:25 +0000] [196.120.76.136] /tunnel/seturl.cgi?url= : Vous avez entré une URL invalide
Use of uninitialized value in split at /usr/share/webmin/virtualmin-htpasswd/virtual_feature.pl line 237.
Use of uninitialized value in split at /usr/share/webmin/virtualmin-htpasswd/virtual_feature.pl line 237.
timeout at /usr/share/webmin/miniserv.pl line 4755.
[26/Nov/2023:00:56:04 +0000] [105.72.29.220] /virtual-server/notify.cgi : Missing subject for email
timeout at /usr/share/webmin/miniserv.pl line 4755.
timeout at /usr/share/webmin/miniserv.pl line 4755.
Use of uninitialized value $username in string eq at /usr/share/webmin/virtualmin-htpasswd/virtual_feature.pl line 251.
[26/Nov/2023:00:44:31 +0000] [105.72.29.220] /virtual-server/save_user.cgi : A user or mail alias with the same name and domain already exists
timeout at /usr/share/webmin/miniserv.pl line 4755.
Use of uninitialized value $username in string eq at /usr/share/webmin/virtualmin-htpasswd/virtual_feature.pl line 251.
[26/Nov/2023:00:37:01 +0000] [105.72.29.220] /virtual-server/save_user.cgi : Missing or invalid-looking password recovery address
[26/Nov/2023:00:24:52 +0000] Reloading configuration
[26/Nov/2023:00:23:27 +0000] Reloading configuration
[26/Nov/2023:00:18:34 +0000] [105.72.29.220] /virtual-server/add_script.cgi : Le fichier local n’existe pas
timeout at /usr/share/webmin/miniserv.pl line 4755.
timeout at /usr/share/webmin/miniserv.pl line 4755.
timeout at /usr/share/webmin/miniserv.pl line 4755.
timeout at /usr/share/webmin/miniserv.pl line 4755.
[26/Nov/2023:00:14:11 +0000] [105.72.29.220] /virtual-server/add_script.cgi : Le fichier local n’existe pas
Use of uninitialized value $username in string eq at /usr/share/webmin/virtualmin-htpasswd/virtual_feature.pl line 251.
[25/Nov/2023:23:36:30 +0000] Reloading configuration
[25/Nov/2023:14:35:57 +0000] Reloading configuration
[25/Nov/2023:14:35:45 +0000] PAM authentication enabled
[25/Nov/2023:14:35:45 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:14:35:45 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:14:35:45 +0000] IPv6 support enabled
[25/Nov/2023:14:35:45 +0000] miniserv.pl started
[25/Nov/2023:14:35:43 +0000] Restarting
[25/Nov/2023:14:35:16 +0000] [105.72.29.220] /virtual-server/csr.cgi?dom=170088124171089&commonName=www.amanet.xyz&subjectAltName=&emailAddress=amanet@amanet.xyz&organizationalUnitName=&organizationName=AMANET1&cityName=Casablanca HM&stateOrProvinceName=casablanca&countryName=20350&size_def=1&hash=sha2 : Erreur OpenSSL : 40770BAE957F0000:error:06800097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:
/crypto/asn1/a_mbstr.c:106:maxsize=2 req: Error adding subject name attribute “/C=20350”
[25/Nov/2023:14:34:46 +0000] Reloading configuration
[25/Nov/2023:14:34:28 +0000] Reloading configuration
[25/Nov/2023:13:56:18 +0000] PAM authentication enabled
[25/Nov/2023:13:56:18 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:13:56:18 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:13:56:18 +0000] IPv6 support enabled
[25/Nov/2023:13:56:18 +0000] miniserv.pl started
[25/Nov/2023:13:56:16 +0000] Restarting
[25/Nov/2023:13:29:14 +0000] PAM authentication enabled
[25/Nov/2023:13:29:14 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:13:29:14 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:13:29:14 +0000] IPv6 support enabled
[25/Nov/2023:13:29:14 +0000] miniserv.pl started
[25/Nov/2023:13:28:43 +0000] Shutting down
[25/Nov/2023:13:12:38 +0000] [105.72.29.220] /virtual-server/save_alias.cgi : Pas de destinations saisies
[25/Nov/2023:13:12:06 +0000] [105.72.29.220] /virtual-server/save_alias.cgi : Nom d’alias manquant ou invalide (aucun @ ne doit ĂȘtre inclus)
[25/Nov/2023:13:02:12 +0000] [105.72.29.220] /virtual-server/csr.cgi?dom=170088124171089&commonName=www.amanet.xyz&subjectAltName=&emailAddress=contact@amanet.xyz&organizationalUnitName=&organizationName=AMANET1&cityName=Casablanca HM&stateOrProvinceName=casablanca&countryName=20350&size_def=1&hash=sha2 : Erreur OpenSSL : 4097131C7B7F0000:error:06800097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:
/crypto/asn1/a_mbstr.c:106:maxsize=2 req: Error adding subject name attribute “/C=20350”
timeout at /usr/share/webmin/miniserv.pl line 4755.
timeout at /usr/share/webmin/miniserv.pl line 4755.
timeout at /usr/share/webmin/miniserv.pl line 4755.
[25/Nov/2023:03:33:36 +0000] [105.72.29.220] /config.cgi?module=virtual-server&section=line2.1 : You are not allowed to configure this module
[25/Nov/2023:03:29:18 +0000] Reloading configuration
In file /usr/share/webmin/miniserv.pl at line 930 calling miniserv::handle_request
In file /usr/share/webmin/miniserv.pl at line 2544 calling (eval)
In file (eval 46) at line 6 calling (eval)
In file /usr/share/webmin/virtual-server/domain_setup.cgi at line 491 calling virtual_server::create_virtual_server
In file virtual-server-lib-funcs.pl at line 8363 calling virtual_server::save_domain
In file virtual-server-lib-funcs.pl at line 546 calling WebminCore::print_call_stack
Call Stack Trace
Domain /etc/webmin/virtual-server/domains/170088292777470 was modified since last read!
[25/Nov/2023:03:29:08 +0000] Reloading configuration
[25/Nov/2023:03:01:10 +0000] Reloading configuration
[25/Nov/2023:03:01:00 +0000] Reloading configuration
[25/Nov/2023:02:57:37 +0000] [105.72.29.220] /virtual-server/pro/delete_remotedns.cgi : None selected!
[25/Nov/2023:02:55:13 +0000] Reloading configuration
[25/Nov/2023:02:15:12 +0000] Reloading configuration
[25/Nov/2023:02:11:29 +0000] Reloading configuration
[25/Nov/2023:02:11:21 +0000] Reloading configuration
[25/Nov/2023:02:06:48 +0000] Reloading configuration
[25/Nov/2023:02:04:50 +0000] Reloading configuration
[25/Nov/2023:01:55:28 +0000] PAM authentication enabled
[25/Nov/2023:01:55:28 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:01:55:28 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:01:55:28 +0000] IPv6 support enabled
[25/Nov/2023:01:55:28 +0000] miniserv.pl started
[25/Nov/2023:01:55:25 +0000] Shutting down
[25/Nov/2023:01:49:53 +0000] Reloading configuration
[25/Nov/2023:01:49:52 +0000] Reloading configuration
[25/Nov/2023:01:49:51 +0000] Reloading configuration
[25/Nov/2023:01:49:47 +0000] Reloading configuration
[25/Nov/2023:01:49:15 +0000] PAM authentication enabled
[25/Nov/2023:01:49:15 +0000] Using SHA512 module Crypt::SHA
[25/Nov/2023:01:49:15 +0000] Using MD5 module Digest::MD5
[25/Nov/2023:01:49:15 +0000] IPv6 support cannot be enabled without the Socket6 perl module
[25/Nov/2023:01:49:15 +0000] miniserv.pl started


All of the connection time outs would make me suspect your provider is blocking port 25. Do they have a firewall you need to configure? Not on your machine but on their side.

EDIT 0: Note that Postifix on your machine is attempting to connect to the remote servers but failing. I think that eliminates your mail stack as the culprit here.

EDIT 1: I’m pretty sure gmail would block with a valid code if they had your IP black listed. Check the headers of the queued mail for more details.

for the gmail hypothesis I don’t think so because I tried with more than just a domain to send emails and the same thing for the minling test site Email not received - mail-tester.com dont recever the mail and in addition the server and almost at birth he did not even spend 2 days no more so this hypothesis by forgetting it for the second can you help me to know if the supplier of the vps plor le por thank you very much for your time

Try sending an email between 2 different users on your Virtualmin system, doesn’t matter if they are on the same domain or not.

yes same problem no email out of domain

this might be useful

tnks but the port 25 it is OPEN

i used a little tool to talk to your server and it is responding on port 25 so SMTP is talking outside of your network.

Connecting to mail server.
Connected.
220 amanet.site ESMTP Postfix (Ubuntu)
EHLO e6540
250-amanet.site
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-SMTPUTF8
250 CHUNKING
RSET
250 2.0.0 Ok
MAIL FROM: <test@example.com>
250 2.1.0 Ok
RCPT TO: <test@example.com>
454 4.7.1 <test@example.com>: Relay access denied

Error: SMTP protocol error. 454 4.7.1 <test@example.com>: Relay access denied.
Failed to send messageForcing disconnection from SMTP server.
QUIT
221 2.0.0 Bye
Disconnected.

If you recieving mail you should be able to send.
I use vultr and never had a issue.

Have you sent to anything apart from a gmail address.

I do add a reverse into vultr setting, gmail will reject if you don’t have a ptr set for both ip4 and ip6 (but the mail log should show that) like I just use mail.mydomain.com for the reverse name.
How to Create Reverse DNS in the Vultr Control Panel - Vultr.com

hello sorry for this message but I have no idea on the method that you work with but I will clarify things to you from my point of view then what you are the support you must find the problem this is the method with which I work with the cpanel team otherwise I don’t see any idea why I will change all my servers to your system
and thank you very much for your message and your ideas to help me really thank you

Can you spin up another server, clean current OS install, then install Virtualmin and don’t make ANY changes.
Add a domain and test for email working.
Something appears to be borked on your system as you can’t email between your domains which don’t leave the system so port 25 and all that stuff isn’t the problem.

Repeat, don’t make any changes or customisations before testing email.

1 Like