 |
NeXT Computers www.NeXTComputers.org
|
|


|
| View previous topic :: View next topic |
| Author |
Message |
kb7sqi

Joined: 24 Sep 2007 Posts: 481 Location: Winston Salem, NC
|
Posted: Sat Nov 17, 2007 1:55 pm Post subject: |
|
|
This part should work fine:
11. Setup .msmtprc file
# vi .msmtprc
Insert the following:
account default
host smtp.gmail.com
from user@gmail.com
tls on
tls_trust_file ~/.certs/thawte.pem
auth on
port 587 <---- Make sure you note the Port 587 & not Port 25.
user user@gmail.com
password password
12. Secure .mstmprc
#chmod 0600 .msmtprc
13. Now setup up Mail.app
In the expert preferences of Mail.app change the mailer from /usr/lib/sendmail to /usr/local/bin/msmtp
Post your files or shoot me an email w/ them minus your passwords of course. I'll make sure they look ok.
 |
|
| Back to top |
|
 |
ericj

Joined: 04 Aug 2006 Posts: 98 Location: Montgomery County, MD
|
Posted: Sat Nov 17, 2007 2:29 pm Post subject: |
|
|
| kb7sqi wrote: | This part should work fine:
11. Setup .msmtprc file
# vi .msmtprc
Insert the following:
account default
host smtp.gmail.com
from user@gmail.com
tls on
tls_trust_file ~/.certs/thawte.pem
auth on
port 587 <---- Make sure you note the Port 587 & not Port 25.
user user@gmail.com
password password
12. Secure .mstmprc
#chmod 0600 .msmtprc
13. Now setup up Mail.app
In the expert preferences of Mail.app change the mailer from /usr/lib/sendmail to /usr/local/bin/msmtp
Post your files or shoot me an email w/ them minus your passwords of course. I'll make sure they look ok.
 |
Oh, but 587 is Gmail's port. Or is this also the port for msmtp? I'm using this with my Verizon email, since I didn't feel like setting SSL certs up.
If you need the file, I can post it after I boot OPENSTEP up (I've upgraded) and retrieve it (it's in VMware, and I'm trying to get GNUstepWeb to work ATM).
Thanks,
Eric
P.S. I've got everything set up for the Verizon servers, fetchmail works fine (if a bit manual for me). msmtp is the only issue for me. Oh, and Verizon email doesn't use SSL by default, so that's not the problem. |
|
| Back to top |
|
 |
kb7sqi

Joined: 24 Sep 2007 Posts: 481 Location: Winston Salem, NC
|
Posted: Sat Nov 17, 2007 2:50 pm Post subject: |
|
|
Oh ok, I understand now. When you get a chance, just post your .msmtprc file & I'll glance over it. I'm sure I can help figure something I can help you setup postfix if needed. I have it compiled also quad fat, but need to archive it properly/package it up. It's a painless replacement for sendmail as well.
Also, if you're working w/ verizon & just pop3'ing your mail, PopOver.app would probably be better choice. I setup fetchmail initially because I use it for several email accounts & I didn't have stunnel ported yet. Once I got stunnel ported, I swapped back over to that for getting my gmail. You only need to get one cert then. Just the one required for msmtp.  |
|
| Back to top |
|
 |
ericj

Joined: 04 Aug 2006 Posts: 98 Location: Montgomery County, MD
|
Posted: Sat Nov 17, 2007 3:44 pm Post subject: Config |
|
|
OK, this is my config file (not a real password, of course, and the email is removed because I don't need more spam):
If there is something missing here, please tell me ASAP.
Thanks,
Eric |
|
| Back to top |
|
 |
kb7sqi

Joined: 24 Sep 2007 Posts: 481 Location: Winston Salem, NC
|
Posted: Sat Nov 17, 2007 10:37 pm Post subject: Re: Config |
|
|
| ericj wrote: | OK, this is my config file (not a real password, of course, and the email is removed because I don't need more spam):
If there is something missing here, please tell me ASAP.
Thanks,
Eric |
Hey Eric,
Ok, from what I've read about Verizon.net's smtp servers, you do need to make sure your "From" header is set correctly in Mail.app as explained above. In your .msmtprc file, on the line user, drop the @verizon.net. Just use user username
If you look @ your console log, you should see some logs from msmtp. Look in /tmp /usr/adm/messages, etc. If that don't work, post the output of the errors. Also, one thing I didn't ask about your .fetchmailrc, did you include the set daemon line also?
Like this:
# set polling time (no less than 5 minutes as required by gmail)
set daemon 600
You shouldn't have to manually run fetchmail to check your email. It should keep running in the background till you kill it/reboot the system. Figured I'd ask. Let me know how it works. Take care. |
|
| Back to top |
|
 |
ericj

Joined: 04 Aug 2006 Posts: 98 Location: Montgomery County, MD
|
Posted: Sun Nov 18, 2007 7:48 am Post subject: Re: Config |
|
|
| kb7sqi wrote: | | ericj wrote: | OK, this is my config file (not a real password, of course, and the email is removed because I don't need more spam):
If there is something missing here, please tell me ASAP.
Thanks,
Eric |
Hey Eric,
Ok, from what I've read about Verizon.net's smtp servers, you do need to make sure your "From" header is set correctly in Mail.app as explained above. In your .msmtprc file, on the line user, drop the @verizon.net. Just use user username
If you look @ your console log, you should see some logs from msmtp. Look in /tmp /usr/adm/messages, etc. If that don't work, post the output of the errors. Also, one thing I didn't ask about your .fetchmailrc, did you include the set daemon line also?
Like this:
# set polling time (no less than 5 minutes as required by gmail)
set daemon 600
You shouldn't have to manually run fetchmail to check your email. It should keep running in the background till you kill it/reboot the system. Figured I'd ask. Let me know how it works. Take care. |
What I mean by manual is that I have to launch it myself when I log in. Oh, and yes, I do have the set daemon line. Fetchmail is working as I expected it to. Oh, and I had assumed from the Verizon Webmail login screen that POP3 & SMTP required the "@verizon.net" part. Guess not! :D
Thanks,
Eric |
|
| Back to top |
|
 |
ericj

Joined: 04 Aug 2006 Posts: 98 Location: Montgomery County, MD
|
Posted: Sun Nov 18, 2007 9:04 am Post subject: Errors |
|
|
OK, these are the two lines that appear in console.log when I try to send mail from Mail.app:
| Code: | msmtp: cannot use a secure authentication method
msmtp: could not send mail (account default from /Users/ejohns/.msmtprc) |
I do not have SSL enabled.
Thanks,
Eric |
|
| Back to top |
|
 |
kb7sqi

Joined: 24 Sep 2007 Posts: 481 Location: Winston Salem, NC
|
Posted: Sun Nov 18, 2007 11:03 am Post subject: |
|
|
Ok, it seems since msmtp is compiled against SSL, it tries to authenticate first w/ TLS. change the auth line in you .msmtprc file to
auth plain or auth login
Here's the output of the server info for outgoing.verizon.net
bash-2.05b$ msmtp --host=outgoing.verizon.net --serverinfo
SMTP server at outgoing.verizon.net (outgoing.verizon.net [206.46.232.12]), port 25:
vms044pub.verizon.net -- Server ESMTP (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006))
Capabilities:
SIZE 20971520:
Maximum message size is 20971520 bytes = 20.00 MB
PIPELINING:
Support for command grouping for faster transmission
ETRN:
Support for RMQS (Remote Message Queue Starting)
DSN:
Support for Delivery Status Notifications
AUTH:
Supported authentication methods:
PLAIN LOGIN
-bash-2.05b$
Again make sure you chmod 0600 ~/.msmtprc and your From Field is setup correctly in Mail.app. I don't see any other reasons why it don't work. Hit me up on AIM/MSN/Yahoo if you have more problems. If you want I can compile a version of msmtp w/out SSL for you as well, but the version you have should work fine.
msmtp --version
msmtp version 1.4.13
TLS/SSL library: OpenSSL
Authentication library: built-in
Supported authentication methods:
plain cram-md5 external login
IDN support: disabled
NLS: disabled
System configuration file name: /usr/local/etc/msmtprc
User configuration file name: /Users/kb7sqi/.msmtprc
Copyright (C) 2007 Martin Lambers and others.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
-bash-2.05b$ |
|
| Back to top |
|
 |
ericj

Joined: 04 Aug 2006 Posts: 98 Location: Montgomery County, MD
|
Posted: Sun Nov 18, 2007 11:18 am Post subject: Thanks |
|
|
OK, it works now. Thanks for all your help!
Eric |
|
| Back to top |
|
 |
kb7sqi

Joined: 24 Sep 2007 Posts: 481 Location: Winston Salem, NC
|
Posted: Sun Nov 18, 2007 12:49 pm Post subject: |
|
|
Cool! Glad it works now! I was starting to get worried. Take care. |
|
| Back to top |
|
 |
kb7sqi

Joined: 24 Sep 2007 Posts: 481 Location: Winston Salem, NC
|
Posted: Wed Jun 16, 2010 9:14 pm Post subject: |
|
|
I've updated the post w/ up to date info on setting up fetchmail/msmtp for working w/ gmail, in case some see's this thread instead of bkmoore's thread requesting help w/ msmtp.
Steve |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|