Author Topic: I can rececive emails, but cannot send any emails  (Read 4191 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
I can rececive emails, but cannot send any emails
« on: February 01, 2023, 12:42:43 PM »
Hi,

I installed an CWP panel on Centos 7 and have CWP pro version.
I created several accounts and then moved on to create an email account.

I am able to receive emails, but I cannot send out any emails. All remain in the mail queue.
I checked all the recommended ports and the are open and listening.
setup is:
Posfix
spf1 staus ok
DMARC status ok
KeyTable sttus ok
TrustedHosts status ok
DKIM1 not able to enable

Can someone help me please?

Thanks,
LJ

Offline
*****
Re: I can rececive emails, but cannot send any emails
« Reply #1 on: February 01, 2023, 04:14:40 PM »
DNS correct with an MX record in place? Verify with dig.
CSF firewall set with SMTP ports (25, 465, 587) open?
Are you starting without Clam and Amavis and SpamAssassin in the mail transport chain for simplicity?

Offline
***
Re: I can rececive emails, but cannot send any emails
« Reply #2 on: February 01, 2023, 06:04:28 PM »
re fix the spf record ...


re build the mail server
with opendkim on


check your ssl


and try to sent email to mail-tester.com .. not to gmail :D if you test sent email to gmail... you need "all green"


Offline
*
Re: I can rececive emails, but cannot send any emails
« Reply #3 on: February 02, 2023, 06:26:05 AM »
Thanks for your reply and support.

Yes to:  DNS correct with an MX record in place? Verify with dig.
Yes to:  CSF firewall set with SMTP ports (25, 465, 587) open?
Started with Calm and SpamAssassin to:
Are you starting without Clam and Amavis and SpamAssassin in the mail transport chain for simplicity?

re fix the spf record ...
re build the mail server
with opendkim on
-> I started with opendkim on and rebuild the mail server once already.

and try to sent email to mail-tester.com .. not to gmail :D if you test sent email to gmail... you need "all green"
-> As I mentioned, the emails remain stuck in the queue, so it does not go anywhere byond the queue it would seem :-)

Issues not resolved yet.

Offline
*
Re: I can rececive emails, but cannot send any emails
« Reply #4 on: February 07, 2023, 07:01:49 PM »
Can we arrange a time for me to access your computer and access your server to check what it could be?

Offline
*****
Re: I can rececive emails, but cannot send any emails
« Reply #5 on: February 10, 2023, 06:35:19 AM »
Can we arrange a time for me to access your computer and access your server to check what it could be?
Sorry, but that sounds rather scary. Maybe we can keep working on it here in the forum, in public view.

Offline
***
Re: I can rececive emails, but cannot send any emails
« Reply #6 on: February 10, 2023, 12:40:20 PM »
Can we arrange a time for me to access your computer and access your server to check what it could be?
Sorry, but that sounds rather scary. Maybe we can keep working on it here in the forum, in public view.


+1


carefull with your cred

Offline
*****
Re: I can rececive emails, but cannot send any emails
« Reply #7 on: February 10, 2023, 09:56:08 PM »
Check with your upstream, some have SMTP ports blocked due to spammers.

To check your Postfix, you can do the following form the command line:

echo "This is the body of the email" | mail -s "This is the subject line" {your_email_address}

Of course, replace {your_email_address} with your email.

If that doesn't work, contact your provider to confirm the ports are open.


Offline
*****
Re: I can rececive emails, but cannot send any emails
« Reply #8 on: February 11, 2023, 12:15:15 AM »
or from outside your server network, telnet in to your server, trying ports 25, 465, 587, 110, 143, 995, 993.
Code: [Select]
telnet <server.ip> 25or do a port scan with nmap:
Code: [Select]
nmap -P0 <server.ip>

Offline
*****
Re: I can rececive emails, but cannot send any emails
« Reply #9 on: February 11, 2023, 12:39:14 AM »
Probably doing a port scan, is it will set off csf.

And 'if' the IP is whitelisted, and is blocked on the server, it will allow it through from that IP. :/

Offline
*****
Re: I can rececive emails, but cannot send any emails
« Reply #10 on: February 13, 2023, 09:27:04 AM »
I can confirm (testing against 3 CWP servers) that an nmap ping probe (example above) will not set off the CSF firewall. You won't block yourself by doing so.
Code: [Select]
localhost$ nmap -P0 yourserver.com
Starting Nmap 7.93 ( https://nmap.org ) at 2023-02-13 02:20 MST
Nmap scan report for yourserver.com (111.111.111.111)
Host is up (0.075s latency).
Not shown: 982 closed tcp ports (conn-refused)
PORT      STATE    SERVICE
25/tcp    filtered smtp
53/tcp    open     domain
80/tcp    open     http
110/tcp   open     pop3
135/tcp   filtered msrpc
139/tcp   filtered netbios-ssn
143/tcp   open     imap
443/tcp   open     https
445/tcp   filtered microsoft-ds
465/tcp   open     smtps
587/tcp   open     submission
993/tcp   open     imaps
995/tcp   open     pop3s
2031/tcp  open     device2
3306/tcp  open     mysql
8888/tcp  open     sun-answerbook