3

We a have a Qnap which uses the internal network. We would like to setup Qnap to send on notification emails to an internal smtp server something like 192.168.123.... which is connected to internet and forwards Notifications to given addresses. On this machine I already have post fix installed. How would I do this?

1 Answer 1

2

You have to open relay for Qnap IP address (if it's a static IP). Edit the /etc/postfix/main.cf file:

mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.123.1
smtpd_recipient_restrictions =  permit_mynetworks, ...., ....

You have to add Qnap IP to mynetworks and be sure smtpd_recipient_restrictions includes permit_mynetworks

After that reload postfix and force Qnap to send a mail. Check the maillog file to see if it's working.

2
  • thank u for feedback I've done the suggested bt qnap hangs on email send
    – fefe
    May 12, 2014 at 12:07
  • Add your workstation IP address to mynetworks in postfix. Then use a mail client for sending a mail using your smtp. That will tell you whether the problem is postfix or Qnap.
    – drkblog
    May 12, 2014 at 12:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .