Need guidance with my goal


#1

Hello,
I know I can follow setup instructions to easily have my mail-in-a-box server, but I need something more specific, and would like to get guidnace:

I have a website with PHP, and I uploaded it like so:

-I have a domain name: domain.com which is purchased at GoDaddy, and a server from DigitalOcean at an IPv4 address: 18.211.123.64. (DNS is managed by DigitalOcean nameservers)

So far it’s OK, but part of my PHP code is sending emails: confirmation emails, password reset emails, etc.
Is it possible to do the following: Creating a separate mail server (a different ip address from DigitalOcean), and make the PHP script send mails from that server, but that it will show emails as webmaster@domain.com? Because my server is running on Ubuntu 16.04, and MIAB supports 14.04.

I hope you understood what I’m trying to achieve, I’m not sure it’s that simple though.

Thanks


#2

Yes, you can do so. You just have to add domain.com as a second domain email address in MIAB, and then set up the appropriate nameservers at domain.com to point to MIAB as stated in the setup instructions.


#3

Wouldn’t it be simpler to just use authenticated SMTP? There is a PHP plugin for that.

The PHP script will authenticate to MiaB and send the mail … I need to find the specifics for one of my users, so I will add them to this thread when I do.

Alas: Can I use PHPMailer with my MIAB mail server?

More useful info here: https://help.dreamhost.com/hc/en-us/articles/216140597-How-do-I-send-PHP-mail-via-SMTP-

Or here: https://www.lifewire.com/send-email-from-php-script-using-smtp-authentication-and-ssl-1171197


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.