rcpthosts allow all recipients

Discussion in 'qmail' started by Tim Dreßel, Aug 26, 2015.

  1. Tim Dreßel

    Tim Dreßel New Email

    Joined:
    Aug 26, 2015
    Messages:
    6
    Likes Received:
    0
    Hey,

    I'm using qmail on our server and we keep recieving "553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)". Our customers do recieve the same error, which is unfortunate. I know that I could add domain by domain into the "rcpthosts" file, but it's not possible to add every single domain.

    Now my question is: Is there a way to allow every domain?


    Best regards,

    Tim
     


  2. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,983
    Likes Received:
    120
    Hi Tim,

    Setup smtp authentication for senders that need to use your server for sending email.

    Allowing sending by domain would be easily exploitable by spammers.

    If you don't know the IP address ranges to allow, or they are not consistent (for example internal corporate network), I recommend smtp authentication.

    A popular implementation can be found here - Tutorial: SMTP Authentication

    There might be others that at a better match depending on your backend and requirements.
     

  3. Tim Dreßel

    Tim Dreßel New Email

    Joined:
    Aug 26, 2015
    Messages:
    6
    Likes Received:
    0
    Hi popowich,

    smtp authentication for sender is already set up. It's possible to send to domains I've added in "rcpthosts", so that might not be the reason.
    Sorry if you meant something else. I'm quite new to the topic.
     
  4. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,983
    Likes Received:
    120
    Hi Tim,

    Are you having trouble sending or receiving email? Is this an MX server, outgoing smtp relay, or both?

    It sounds like smtp authentication is not setup correctly, your users outgoing mail server settings are not setup correctly, or the incoming email for some domains you host is not setup correctly.
     
  5. Tim Dreßel

    Tim Dreßel New Email

    Joined:
    Aug 26, 2015
    Messages:
    6
    Likes Received:
    0
    We're having trouble sending message. For example to "address@web.de".
    I can add "web.de" to the list so it's possible to send to address@web.de.

    We're using smtp relay.
     
  6. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,983
    Likes Received:
    120
    Hi Tim,

    It's wrong to be adding domains that you want to send to to the rcpthosts file, you're creating a partial open relay that can be abused by spammers.

    Something is wrong with your smtp authentication configuration. A correct username and password should be all your users need to send email to any email address.
     
  7. Tim Dreßel

    Tim Dreßel New Email

    Joined:
    Aug 26, 2015
    Messages:
    6
    Likes Received:
    0
    Is there any way I can check what exactly is wrong?
     
  8. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,983
    Likes Received:
    120
    From what I'm seeing it seems like it's not working at all and you've been working around it.

    Which directions did you use to install this qmail server?
     
  9. Tim Dreßel

    Tim Dreßel New Email

    Joined:
    Aug 26, 2015
    Messages:
    6
    Likes Received:
    0
    qmail was installed with and from pd-admin itself.
     
  10. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,983
    Likes Received:
    120
  11. Tim Dreßel

    Tim Dreßel New Email

    Joined:
    Aug 26, 2015
    Messages:
    6
    Likes Received:
    0
    Alright, I will try getting support from pd-admin then.
    Thank you for your help :)
    :thanks:
     

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...