email forwarding, apache, cpanel, php - apache

How does email forwarding works in cpanel (apache server)? I could not find any documentation for this on my client's cpanel itself (i dont have their hosting account only cpanel). Basically, they just want to monitor incoming and outgoing emails in one account. They have 8 email individual accounts and one person wants to monitor each accounts email (in and out) is there a way to do this using cpanel in an apache server.
thanks in advance!

Unfortunately, it's impossible to forward outgoing mail in CPanel. See this link:
http://forums.cpanel.net/f43/possible-forward-outgoing-mail-78332.html
and
http://www.linuxweblog.com/blogs/sandip/20090423/monitor-outgoing-emails-cpanel-exim
Unfortunately I don't have access to exim settings so I'd like to know if there's another solution as well.

Related

Stop Centos mailserver from sending spam and route mail to managed mail (G-Suite)

We are currently migrating away from hosting our own mailserver due to not having an IT professional who is experienced in mailserver security (SPF, DKIM, DMARC, etc.). I have attempted to route the cPanel DNS zone records away from The Server which currently hosts several websites in hopes of fixing the problem of our mailserver being blacklisted for sending spam due to a vulnerability.
I have added Google's TXT records and I can successfully setup G-suite addresses for our email addresses locally. However, G-suite keeps suspending the email accounts since some spam from our old server (or an email bomb?) keeps being somehow forwarded to the
What steps do I need to take to prevent our mail from our local workstations from being routed through the server? It keeps blacklisting the emails and they can't get to the correct address.
I'm using WHM and cPanel.
In the WHM "Edit DNS Zones" Go to each Domain and set "Email Routing" at the bottom of the page to "Remotely". Added MX records, SPF, and DKIM as TXT records.
Finally, you can shutdown the dovecot mail application running in Centos.
sudo service dovecot stop
sudo service dovecot status

DNS rerouting SSL issue

I have a blocklist for my internal network that reroutes the user to another IP address should there be a match. This is managed via SimpleDNS and a tool within that program. The rerouting works and it goes to the IP address.
Code on the IP website then logs the hit and reroutes to a fully qualified domain and shows the user a message.
Except I now have an issue inbetween SimpleDNS rerouting to the IP and the friendly page being showen
Your connection is not private
Attackers might be trying to steal your information from www.starbucks.co.uk (for example, passwords, messages, or credit cards). Learn more
NET::ERR_CERT_COMMON_NAME_INVALID
Automatically send some system information and page content to Google to help detect dangerous apps and sites. Privacy policy
(starbucks.co.uk is just a test site in the blocklist)
I can then click on the Advanced > Proceed and it goes to the correct location but is there anyway I can bypass that. I'm guessing it's an ssl issue somewhere somehow.
Setup is Windows Server 2016 running IIS. I have an SSL on the end domain which is installed and works correctly.
Thanks
Paul

External Email Server for one domain under cPanel server

Trying to set up a domain name under cPanel server... so far so good, the problem comes once I am trying to point this domain to an external Kerio Mail server.
Even though from ssh user root can telnet the Kerio Mail server, when the user/domain tries to sent email using this server, get's smtp connection timed out.
Wondering is there's more than DNS changes that need to be made or something else is needed in cPanel firewall (CSF)
To allow SMTP connection to another server, any thoughts ?
If you are trying to send mail from your server and getting timeout then you need to check your firewall. First I will suggest you please try to disable your server firewall and test your mail again.

How can I setup notifications when someone connects to my server through SSH?

Is it possible to setup a notifications, i.e. in the form of an email, when someone connects to my server via SSH?
You can use Fail2ban to do this.
Fail2ban is designed to scan log files (e.g. sshd logs and httpd logs) and then ban ip addresses that appear to be behaving maliciously. However, you can reconfigure it to detect successful logins and then e-mail you.

Port 25 open / Postfix installed, but no mail being sent out

I've installed Postfix, opened port 25 (as well as ports 110, 995, 143, and 993) on my local computer connected to the Internet, but none of the e-mails that I am attempting to send out using the localhost:25 definition are being properly routed to their destination. Basically, I am trying to set up a local SMTP server to send out e-mails from my production website's software (also hosted on the same local computer).
I am using Verizon FIOS Internet service, who reportedly blocks port 25 (but actually does not in my case, as I have enabled it and checked that is in fact accessible from my external IP address). I have attempted to send the e-mail using no Smart Host, then using Verizon's SMTP server as a Smart Host, and finally using Verizon/Yahoo's SMTP server as a Smart Host, but none of them have worked.
What could be causing this issue?
I really appreciate any help on this problem, because I've been working to no success on it for the past three hours. Thank you all in advance!
absolutely, it's very common for large ISPs to block outbound connections on port 25 ~ they do this specifically to prevent what you are attempting. You should give them a call and verify if this is the case.
OR
See if you can configure your postfix to authenticate on your verizon mail account and relay your mail through that. [actually I did exactly this ~ I'll see if I can dig up the config]
-sean
UPDATE
here we go:
relayhost = [smtp.gmail.com]:587
smtpd_sasl_auth_enable = no
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
Sorry, I'm a little crunched on time, you'll have to dig up the docs for postfix relaying and how to setup the password maps [cause I don't recall offhand]
Hope his helps...
Have you setup MX record in DNS (reverse DNS must work properly) and the respective domain name (FDQN) in the smpt demon ?