[SOLVED] Need help integrating sendmail with SendGrid
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've just signed up for sendgrid using the SMTP relay method. I've used this method successfully with other smart hosts requiring authentication, but not with SendGrid. I'm hoping some LQ expert has configured sendgrid and can help me out.
Did you try to use port 587 (submission) to connect to the smarthost?
See this for more details
Regards
Thanks for the feedback. I was using that page for setting up, but did not use port 587. The "Setup Guide" they sent me lists ports: 25, 587, 465, so I thought I could just use 25. Per your link, I added the following to my .mc file:
This time, I did not get the "Temporary AUTH failure", but the messages doesn't deliver. It retried 25 minutes later with the same log results.
port 587, as I understand it, is for TLS. This host does not have a TLS certificate. Before I go off and create one, would that be the problem with getting the "Deferred"?
A certificate gets created for a specific domain. This host has several domains. If I need to create a certificate, do I just pick one of them?
This time, I did not get the "Temporary AUTH failure", but the messages doesn't deliver. It retried 25 minutes later with the same log results.
port 587, as I understand it, is for TLS. This host does not have a TLS certificate. Before I go off and create one, would that be the problem with getting the "Deferred"?
A certificate gets created for a specific domain. This host has several domains. If I need to create a certificate, do I just pick one of them?
I guess you need to contact their support for specific help.
My advise to use the submission port (587), is because I use a similar setup using gmail as smarthost
BTW looking again your /etc/mail/authinfo and that of the gmail setup, I think you should use something like:
I guess you need to contact their support for specific help.
My advise to use the submission port (587), is because I use a similar setup using gmail as smarthost
BTW looking again your /etc/mail/authinfo and that of the gmail setup, I think you should use something like:
I got some feedback from sendGrid tech support. Their setup page was confusing. I had to enter an Id string whereupon it returns a password. I understood the Id string to be the 'apikey', to correspond to "yourusername" in the link referenced in #2, and to be the U: parameter in the AuthInfo, but no. The U: parameter is literally "apikey"! Once I used that, it worked. Dunno what the Id string is used for, or why their documentation says "yourusername". It's not "yourusername".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.