SMTP Server Setup

I was wondering how I could setup an SMTP host on the same server as CyberPanel instead of connecting to an external host.
I can currently receive emails but I cannot send them.

by default it is that way , mail host on same server where the cyberpanel.

if you can not send out , please check maillog , it should say something

Thanks, it turned out to be my hosting provider, the block smtp to fight spam

you can do it that.

What you need to do is.

Add your domain as a website (Which you want to create SMTP)

Go to Emails > Select That Domain > Create Email

After creating email you can find some IMAP /POP3 / SMTP credentials

Use that credentils as SMTP to send emails.

SMTP host name looks like mail.yourdomin.com
PORT : 587
User Name: [email protected]
Password : Your Password

Things to note:
Make sure your rDNS same as your host name like mail.yourdomain.com

Type your comment> @Akash said:

Things to note:
Make sure your rDNS same as your host name like mail.yourdomain.com

What is the rdns and host name?