Postfix exception for an account to send email without login

Discussion in 'Postfix' started by Zauny, Oct 9, 2013.

  1. Zauny

    Zauny Valued Member

    Joined:
    Sep 4, 2013
    Messages:
    34
    Likes Received:
    0
    I have Postfix configured to require user to first login before they can send an email. However, now have a NAS which needs to send notifications. Sadly it does not have the capability to login to the mail server. How can I make an exception it send email without logging into the mail server...
     


  2. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,983
    Likes Received:
    120
    Which ports are you using on the mail server?

    Is it possible for you to do IP based relay on port 25 and smtp authentication on port 587?
     

  3. Zauny

    Zauny Valued Member

    Joined:
    Sep 4, 2013
    Messages:
    34
    Likes Received:
    0
    is that the only option?
     
  4. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,983
    Likes Received:
    120
    I didn't test it yet, but you might be able to override the smtp auth by adding the IP of the storage to the "mynetworks" setting in your /etc/postfix/main.cf

    It's a personal preference of mine to keep IP based relay and smtp-auth on separate ports.
     
  5. Zauny

    Zauny Valued Member

    Joined:
    Sep 4, 2013
    Messages:
    34
    Likes Received:
    0
    kindly see below "mynetworks setting, note that NAS uses IP 10.19.0.16

    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.19.0.0/16
     

Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.
Loading...