How can I use other SMTP service with ISPconfig?

Discussion in 'General' started by hknerdr, Dec 29, 2024.

  1. hknerdr

    hknerdr New Member

    Hello
    I have an Azure server that doesn’t allow me for SMTP connection. So I need to use 3rd service.
    People recommend sendgrid but it has 100 mails per day quota. I have msg91 subscription that allows me 5000 emails per month.
    I think they don’t have relay but they give standart SMTP credentials.
    How can I integrate to my mail server to send it from there? I have contact forms so they have to send mail.
    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The relay server settings are under System > server config > Email.
     
  3. hknerdr

    hknerdr New Member

    Thanks. In fact I tried that but couldn’t succeed. I don’t know if I do something wrong. I entered hostname and user pass of MSG91 smtp credentials like outlook client but didn’t work.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Check your mail.log to see why it does not work. Might be that you closed the smtp port at azure or that azure requires you to use a specific port, which needs to be set as the mail server hostname like:

    smtp.otherserver.com:587
     
    ahrasis likes this.
  5. hknerdr

    hknerdr New Member

    thank you i did like smtp.otherserver.com:587 and it worked!
    there is another problem on msg91 side though i have to solve on my own :)

    Regards
     
  6. EstellaHardy

    EstellaHardy New Member

    To integrate MSG91 SMTP with your mail server for contact forms, configure your server (e.g., Postfix) to use MSG91’s SMTP credentials by updating the relay settings. In your web app, adjust the email settings to send through MSG91 by specifying their SMTP host, port, and authentication details. To reduce bounces and ensure valid emails, integrate email verification services like MailTester Ninja directly into the form submission process, validating addresses before sending. This setup ensures reliable email delivery without relying on Azure’s limited SMTP options.
     
  7. hknerdr

    hknerdr New Member

    Thank you. How can i integrate MailTester Ninja into form submission? It has free option i think so it will be adequate.

    Also how can i be sure about the email spam settings? What is the best tool?
     
  8. EstellaHardy

    EstellaHardy New Member

    You're right—MailTester Ninja offers a free tier, which should be enough for basic validation. You can integrate it by calling their API during form submission. Just send the email address to their endpoint, and based on the response, accept or reject the submission.

    For spam prevention, consider tools like Postmark or SpamAssassin. They analyze email content and headers to ensure better deliverability. Also, make sure your SPF, DKIM, and DMARC records are correctly set up to avoid emails being flagged as spam.
     
    hknerdr likes this.
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig filters already for spam using Rspamd and does DKIM signing. So, no further configuration is needed for ISPConfig systems.
     
    hknerdr likes this.
  10. hknerdr

    hknerdr New Member

    In fact i was looking for a tool to check if my mails would be flagged as spam. Not receiving, sending mails.
    I want to check if my SPF, DKIM and DMARC settings are correct.
     
  11. hknerdr

    hknerdr New Member

    How can i integrate? I don't know much about coding :(
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    My answer was about what @EstellaHardy mentioned and not about your request on how to check if a mail server is flagged as spam. As you use a mail relay, it's more about if your mail mail relay provider is flagged, so testing your server IP if its blacklisted does not make sense as it does not send any emails directly. So it makes no sense to test if the Ip of your server is listed on blacklists.
     
    hknerdr likes this.
  13. hknerdr

    hknerdr New Member

    Thank you but in fact i want to test the mail itself not the ip. I mean it should act like inbox to check if the mail is considered as spam or not.
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no way to test that reliably, as every recipient mail system does this independently with its own custom rules and filters. As I said, it mostly depends on the reputation of the sender IP, which you can't test. You decided to not have your own mail server with its own sender IP, so you can not test your IP. Using a hosting provider for the server that does not allow you to send email for a mail system makes not much sense because now you rely on a third-party email server and its reputation, so you rely on no other clients of your mail relay provider send spam or mass emails to not get your emails flagged as spam too. Also, the result will vary heavily depending on which smtp out node of your relay provider is getting used.

    So you want to test if your mail is flagged as spam? Get your address book and email some of your friends and ask them to reply you if the mail was flagged at their provider.
     
    hknerdr likes this.

Share This Page