![]() |
Sendmail to use Gmail's SMTP to send mail
Hi there!
I am trying to configure sendmail to use GMail to send emails. I followed the instructions at http://www.phinesolutions.com/sendma...lay-howto.html but it failed. After I was done with these instructions, I think I "cooked" sendmail... Can no longer configure it and it seems that I will have to start from scratch again... Anybody can provide direction? How to get sendmail to send emails using Gmail's SMTP server? Thanks! |
The link you provided looks great and appears to work well. I don't understand what else we are supposed to say..?
|
Well I should have been more descriptive....
Like i said, I followed the instructions at that link, but for some reasons, it no longer works. I am trying to send an email using a python script somebody put together, and before I tried to modify sendmail, the emails were at least created, but could not be delivered (due to the misconfiguration and not using Gmail's smtp). At least, I could see them as "Deferred" in root's inbox. I am using Webmin to manage my server and see the inboxes. Now since I tried to modify sendmail to use Gmail's smtp servers, I no longer can access sendmail's config page (in Webmin) nor I can see root's inbox. I also dont receive the emails so this means that they are not sent. When I try to access sendmail's config page in webmin, it says: Quote:
Quote:
Thanks! |
Bump.. Anybody?
Anybody configured sendmail to use an external email server to send email?? Cant believe Im the only one to have tried this... |
Well I'd certainly steer clear of webmin for anything at all. I'd also personally steer clear of sendmail as it's ancient and complicated compared to, for example, Postfix. You're never going to get anywhere using webmin errors to base a diagnosis on, what actually happens in the mail logs? Does sendmail start? Is that all that is in the cf file?? What about the sendmail.mc?
|
Well in light of your reply I think the best course of action is to ignore webmin for what it says and delete the config files of sendmail and restart fresh. What happens I think is somehow the procedure I followed was either flawed or I screwed up doing it (more likely to be this one) and resulted in an incomplete config file.
So if I get this straight, you're recommending to get away from sendmail for the default system email client? As for webmin you also recommend staying away from it? I use webmin on my server to have all features and info available in the same location and be able to remotely control them. Do you have a suggestion for a better replacement? |
Sendmail is still the most prolific SMTP server on the web, and it's extremely good, it's just complicated and obscure - I mean, it has a config file to manage the config file!
I would never want to use an all-in-one tool for management like that. I wold rather know the actual products I'm using. SSH works well for me. |
You have to enable smtp at gmail account.
Go to gmail settings and enable forwarding POP IMAP |
OK after a few weeks off the keyboard, I am coming back to this topic.
I've restarted from scratch and completely ignoring webmin this time. Here's where I think the problem is: My sendmail.mc file is: Code:
FEATURE(`authinfo',`hash /etc/mail/auth/client-info.db')dnlThen I used m4 sendmail.mc > sendmail.cf and got a sendmail.cf file with this in it: Code:
FEATURE(authinfo,hash /etc/mail/auth/client-info.db)THen I restarted the sendmail daemon and got this output: Code:
root@server:/etc/mail# /etc/rc.d/rc.sendmail startmail email@domail.com and entering subject/text body and pressing Crtl+D but I never gor the email. So this confirms that something is wrong. Whats the problem? Thanks! |
Quote:
Take a look at this howto , here at LQ (just the "Client-Side SMTP AUTH + SMART_HOST" section) to recreate a correct .mc file Regards |
OK I got past the last point where I was, now I have a decent sendmail.cf file... but I still cant send mails. I have this in my /var/log/maillog:
Quote:
version=TLSv1/SSLv3, verify=FAIL that is probably why it doesn't work. Anybody would know what could be wrong? |
This is not an error. The problem is
Quote:
Regards |
I finally got it to work!! The instructions at http://www.phinesolutions.com/sendma...lay-howto.html were either incomplete or not meant to be implemented on a slackware machine, I am no Sendmail expert to comment ion that but I used the instructions of http://www.linuxha.com/other/sendmail/gmail.html and with small modifications such as ISP name and file names, it works perfectly!
Thanks to all!!!! |
| All times are GMT -5. The time now is 10:21 AM. |