Sendmail - Gmail

sanchehl
Posts: 11
Joined: Tue Sep 08, 2009 3:58 pm

Sendmail - Gmail

Postby sanchehl » Sun Sep 20, 2009 9:11 pm

Has anyone successfully setup sendmail to use gmail or google apps as the relay?
I have found several articles on the web from other users, but none are using Amahi so i'm not sure how much applies or doesn't apply. needless to say i've tried a bunch of things but have not been able to send out email thru gallery2. All i'm looking to do is send out emails from gallery2, drupal, etc. for notifications or password resets. i don't want to system to receive emails.
here is a snippet from the maillog.
---------------------------------------------
Sep 20 23:53:54 homedomain sendmail[8693]: starting daemon (8.14.3): SMTP+queueing@01:00:00
Sep 20 23:53:54 homedomain sm-msp-queue[8702]: starting daemon (8.14.3): queueing@01:00:00
Sep 20 23:54:03 homedomain sendmail[8708]: n8L3s3Z4008708: from=root, size=243, class=0, nrcpts=1, msgid=<200909210354.n8L3s3Z4008708@localhost.localdomain>, relay=root@localhost
Sep 20 23:54:03 homedomain sendmail[8708]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Sep 20 23:54:03 homedomain sendmail[8709]: STARTTLS=server, relay=localhost.localdomain [127.0.0.1], version=TLSv1/SSLv3, verify=NO, cipher=DHE-RSA-AES256-SHA, bits=256/256
Sep 20 23:54:03 homedomain sendmail[8709]: n8L3s3G3008709: from=<root@localhost.localdomain>, size=503, class=0, nrcpts=1, msgid=<200909210354.n8L3s3Z4008708@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Sep 20 23:54:03 homedomain sendmail[8708]: n8L3s3Z4008708: to=recipient@gmail.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30243, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n8L3s3G3008709 Message accepted for delivery)
Sep 20 23:54:04 homedomain sendmail[8711]: STARTTLS=client, relay=smtp.gmail.com, version=TLSv1/SSLv3, verify=OK, cipher=RC4-MD5, bits=128/128
Sep 20 23:54:04 homedomain sendmail[8711]: AUTH=client, relay=smtp.gmail.com [publicip], authinfo failed
Sep 20 23:54:04 homedomain sendmail[8711]: n8L3s3G3008709: to=<recipient@gmail.com>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=120503, relay=smtp.gmail.com [publicip], dsn=5.0.0, stat=Service unavailable
Sep 20 23:54:04 homedomain sendmail[8711]: n8L3s3G3008709: n8L3s4G2008711: DSN: Service unavailable
Sep 20 23:54:04 homedomain sendmail[8711]: n8L3s4G2008711: to=<root@localhost.localdomain>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31820, dsn=2.0.0, stat=Sent
--------------------------------------------------------
i've never tried to configure sendmail before so i'm not exactly sure what i'm doing. it seems like every article i read is slightly different and none have worked for me so far. If someone has successfully configured this, or if this has already been posted here somewhere, could you point me in the right direction.

thanks.

error10
Posts: 7
Joined: Thu Oct 01, 2009 8:12 pm

Re: Sendmail - Gmail

Postby error10 » Thu Oct 01, 2009 9:06 pm

It looks like you're making progress. I can tell from the log that the message is getting to Gmail but Gmail is rejecting it. What I can't tell from the log is why. The bounce message that came back (to root's mailbox) might have more details.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Sendmail - Gmail

Postby moredruid » Fri Oct 02, 2009 11:54 am

AUTH=client, relay=smtp.gmail.com [publicip], authinfo failed
basically authentication failed. You _must_ authenticate with your uid & password to send with/through Googles SMTP (and use TLS, configure correct ports etc.). And even then they might reject it since your server is asking the Google server to relay for it, which it probably won't permit.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Sendmail - Gmail

Postby rgmhtt » Fri Oct 02, 2009 12:18 pm

bigfoot65 is developing a mailer (and I am helping a tad) around postfix, courier, and squirrelmail:

http://wiki.amahi.org/index.php/Amahi_Mail_System

I suspect this setup will support what you are doing. Perhaps you would like to try out the app as it is now, and then set it up to work with GMAIL.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Sendmail - Gmail

Postby moredruid » Fri Oct 02, 2009 11:30 pm

I was reading a magazine and came across this program: Axigen.
Free for up to 5 users, if you need more a license will cost you tho ($99/year for 10 users including push e-mail to most mobile phones, the free edition doesn't have push). However it seems to be a drop-in replacement for Exchange and is quite attractively priced compared to MS Exchange, especially for businesses ($275/year for up to 500 users depending on chosen extras). It looks quite nice and intuitive which is more than I can say for a few other "Exchange replacement" packages I tried.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Sendmail - Gmail

Postby bigfoot65 » Sat Oct 03, 2009 2:04 pm

I have used it before. It's not nice. Was gonna try to package it, but not sure. The download size may be a problem.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 5 guests