LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   [Postfix] Configure Postfix at home as SMTP relay? (https://www.linuxquestions.org/questions/linux-software-2/%5Bpostfix%5D-configure-postfix-at-home-as-smtp-relay-4175717792/)

littlebigman 10-15-2022 11:21 AM

[Postfix] Configure Postfix at home as SMTP relay?
 
Hello,

I'm helping someone with a phpBB forum application sitting on a shared host that isn't sending email as expected – no email is coming out through either PHP's mail() function or the hoster's SMTP server, with no error message.

Since it's shared and I'm not allowed to SSH to it, I can't check the server's /var/log/messages.

So… as a way to check if the application is actually connecting out to send emails, I'd like to set up a Postfix server on a Debian computer at home behind an ADSL router, to act as a relay between phpBB on the hoster's site, and my ISP's SMTP server, ie.

phpBB on hosted server → Internet → my ADSL router → home Debian computer with Postfix → back to the Internet → my ISP's SMTP server → final target SMTP server → POP3.

How would I configure Postfix's /etc/postfix/main.cf or master.cf for that purpose?

For instance, I don't know what domain name I should use ("mydomain"), since it's just a server at home on a private network (192.168.x.y)

Thanks for any help

des_a 10-15-2022 06:53 PM

There is a very good book called "using sendmail", if I remember correctly. Sorry for the long answer, but I recommend buying this book. Also, I recommend not using Debian for this, if you can. I recommend either the OpenSuSe distro, which has YaST, or the Mageia distro, which has server wizards. Once you get a configuration from that, save it, and then you have a start to just modify. You DO have to install GUIs, for these tools.


All times are GMT -5. The time now is 03:25 AM.