Re: Problem downloading and sending email

2016-12-13 Thread Denny White
Never could stop the old message d/l problem
no matter how I juggled & tweaked settings.
I finally went into Gmail settings & changed
the date cutoff to allow d/l messages to the
present. After first run no more problems.
Only glitch now is, no matter how I fiddle
with the settings I can't get it to delete
d/l messages once I've d/l them, but I can
live with that. Also got msmtp working. Must
be really tired. Answer was in front of me
all the time: one misspelling in .msmtprc
was causing it. Had to do with the logfile.
Either need some sleep or new glasses. Quite
possibly both. :) Again, thanks for the help.


On Tuesday, December 13, 2016 5:41 PM, Marcus MERIGHI  
wrote:
dancerviet2...@yahoo.com (Denny White), 2016.12.13 (Tue) 09:52 (CET):
> Am running 6.0 Release with all patches up
> to date. I've installed mutt, fetchmail,
> getmail, procmail, & msmtp. Had rough time

seen this?  http://marc.info/?l=openbsd-ports=141634350915839
tl;dr: move to fdm(1)

> setting up mutt trying to remember how to
> use Mail vs mbox but got it working. Got
> both getmail & fetchmail to d/l email from
> my gmail account, but both have same problem:
> they keep downloading old messages instead

Maybe stop using "keep" on POP3 accounts?

> of new. I've tried all sorts of ways with
> fetchmail using 'no fetchall' to no avail.
> Same with getmail. I also am unable to send
> mail from mutt using msmtp. Am pasting in
> all relevant *.rc's. Don't know if a dmesg
> will help, but remember it's more often 
> 
> than not standard practice when asking ??s
> on @misc. Thanks for any help might come
> my way. Seriously! :)
> 
> 
> 
> .muttrc
> set realname = 
> set from = 
> set use_from = yes
> set envelope_from ="yes"
> set sendmail="/usr/local/bin/msmtp"

why not use default OpenSMTPd?

> set spoolfile = ~/Mail/inbox
> set folder="~/Mail"
> set record="+sent"
> set postponed="+postponed"
> set mbox_type=mbox
> set move=no
> ignore *
> unignore Date: From: User-Agent: X-Mailer X-Operating-System To: \
> Cc: Reply-To: Subject: Mail-Followup-To:
> hdr_order Date: From: User-Agent: X-Mailer X-Operating-System To: \
> Cc: Reply-To: Subject: Mail-Followup-To:
> set editor="vim -c 'set tw=70 et' '+/^$' "
> set edit_headers=yes
> set markers
> set smart_wrap
> set pager_context=10
> push 
> #set_signature=~/.signature
> 
> 
> 
> .fetchmailrc
> set logfile /home/tobias/.fetchmail.log
> set no bouncemail
> poll pop.gmail.com proto POP3 auth password no dns user 
> "x...@gmail.com" pass "" is  keep ssl

-k | --keep
(Keyword: keep)
Keep retrieved messages on the remote mailserver. Normally,
messages are deleted from the folder on the mailserver after
they have been retrieved.  Specifying the keep option causes
retrieved messages to remain in your folder on the mailserver.
This option does not work with ETRN or ODMR. If used with POP3,
it is recommended to also specify the --uidl option or uidl
keyword.

Marcus

> mda "/usr/local/bin/procmail -d %T"
> options
> #verbose
> #no fetchall
> #sslcertck
> #sslcertpath /etc/ssl/cert.pem
> (adding now as posting. The certs work okay but without
> any added switches like the ones here that are commented
> out.)
> 
> 
> #set postmaster ""
> #set logfile /home//.fetchmail.log
> #set polling time (5 minutes)
> #:set daemon 600
> 
> #poll pop.gmail.com with proto POP3 
> #user '@x...@gmail.com' there with password '' is  here 
> keep no fetchall ssl sslcertck sslcertpath /etc/ssl/cert.pem
> 
> # fetchmail -d0 -vk pop.gmail.com
> 
> 
> 
> getmailrc
> [retriever]
> type = SimplePOP3SSLRetriever
> server = pop.gmail.com
> port = 995
> username = 
> password = 
> 
> [destination]
> type = MDA_external
> path = /usr/local/bin/procmail
> arguments = ('-f', "%(sender)")
> #arguments = ('~/.procmailrc', '-f', "%(sender)")
> (While composing this email tried couple other
> switches with getmail try to stop it from d/l
> old read msgs, but it still did it. tried this:
> read_all = false
> delete = false
> Was no help)
> 
> 
> 
> .procmailrc (putting this in just to be safe. Actually
> does work okay putting everything in mutt)
> PATH=/bin:/usr/bin:/usr/local/bin
> VERBOSE=on# Turn on for verbose log
> DEFAULT=/home//Mail/inbox
> MAILDIR=/home//Mail# Where Procmail recipes deliver
> LOGFILE=$HOME/.procmaillog# Keep a log for troubleshooting
> # Recipes
> :0:
> * ^TOmutt-user
> mutt
> 
> 
> 
> .msmtprc (not able to send mail from mutt with this *rc)
> account default
> host smtp.gmail.com
> port 587
> from "x...@gmail.com"
> tls on
> tls_starttls on
> #tls_trust_file /etc/ssl/cert.pem
> auth on
> user 

Re: Problem downloading and sending email

2016-12-13 Thread Marcus MERIGHI
dancerviet2...@yahoo.com (Denny White), 2016.12.13 (Tue) 09:52 (CET):
> Am running 6.0 Release with all patches up
> to date. I've installed mutt, fetchmail,
> getmail, procmail, & msmtp. Had rough time

seen this?  http://marc.info/?l=openbsd-ports=141634350915839
tl;dr: move to fdm(1)

> setting up mutt trying to remember how to
> use Mail vs mbox but got it working. Got
> both getmail & fetchmail to d/l email from
> my gmail account, but both have same problem:
> they keep downloading old messages instead

Maybe stop using "keep" on POP3 accounts?

> of new. I've tried all sorts of ways with
> fetchmail using 'no fetchall' to no avail.
> Same with getmail. I also am unable to send
> mail from mutt using msmtp. Am pasting in
> all relevant *.rc's. Don't know if a dmesg
> will help, but remember it's more often 
> 
> than not standard practice when asking ??s
> on @misc. Thanks for any help might come
> my way. Seriously! :)
> 
> 
> 
> .muttrc
> set realname = 
> set from = 
> set use_from = yes
> set envelope_from ="yes"
> set sendmail="/usr/local/bin/msmtp"

why not use default OpenSMTPd?

> set spoolfile = ~/Mail/inbox
> set folder="~/Mail"
> set record="+sent"
> set postponed="+postponed"
> set mbox_type=mbox
> set move=no
> ignore *
> unignore Date: From: User-Agent: X-Mailer X-Operating-System To: \
> Cc: Reply-To: Subject: Mail-Followup-To:
> hdr_order Date: From: User-Agent: X-Mailer X-Operating-System To: \
> Cc: Reply-To: Subject: Mail-Followup-To:
> set editor="vim -c 'set tw=70 et' '+/^$' "
> set edit_headers=yes
> set markers
> set smart_wrap
> set pager_context=10
> push 
> #set_signature=~/.signature
> 
> 
> 
> .fetchmailrc
> set logfile /home/tobias/.fetchmail.log
> set no bouncemail
> poll pop.gmail.com proto POP3 auth password no dns user 
> "x...@gmail.com" pass "" is  keep ssl

-k | --keep
(Keyword: keep)
Keep retrieved messages on the remote mailserver. Normally,
messages are deleted from the folder on the mailserver after
they have been retrieved.  Specifying the keep option causes
retrieved messages to remain in your folder on the mailserver.
This option does not work with ETRN or ODMR. If used with POP3,
it is recommended to also specify the --uidl option or uidl
keyword.

Marcus

> mda "/usr/local/bin/procmail -d %T"
> options
> #verbose
> #no fetchall
> #sslcertck
> #sslcertpath /etc/ssl/cert.pem
> (adding now as posting. The certs work okay but without
> any added switches like the ones here that are commented
> out.)
> 
> 
> #set postmaster ""
> #set logfile /home//.fetchmail.log
> #set polling time (5 minutes)
> #:set daemon 600
> 
> #poll pop.gmail.com with proto POP3 
> #user '@x...@gmail.com' there with password '' is  here 
> keep no fetchall ssl sslcertck sslcertpath /etc/ssl/cert.pem
> 
> # fetchmail -d0 -vk pop.gmail.com
> 
> 
> 
> getmailrc
> [retriever]
> type = SimplePOP3SSLRetriever
> server = pop.gmail.com
> port = 995
> username = 
> password = 
> 
> [destination]
> type = MDA_external
> path = /usr/local/bin/procmail
> arguments = ('-f', "%(sender)")
> #arguments = ('~/.procmailrc', '-f', "%(sender)")
> (While composing this email tried couple other
> switches with getmail try to stop it from d/l
> old read msgs, but it still did it. tried this:
> read_all = false
> delete = false
> Was no help)
> 
> 
> 
> .procmailrc (putting this in just to be safe. Actually
> does work okay putting everything in mutt)
> PATH=/bin:/usr/bin:/usr/local/bin
> VERBOSE=on# Turn on for verbose log
> DEFAULT=/home//Mail/inbox
> MAILDIR=/home//Mail   # Where Procmail recipes deliver
> LOGFILE=$HOME/.procmaillog# Keep a log for troubleshooting
> # Recipes
> :0:
> * ^TOmutt-user
> mutt
> 
> 
> 
> .msmtprc (not able to send mail from mutt with this *rc)
> account default
> host smtp.gmail.com
> port 587
> from "x...@gmail.com"
> tls on
> tls_starttls on
> #tls_trust_file /etc/ssl/cert.pem
> auth on
> user "x...@gmail.com"
> password "XX"
> logile ~/.msmtp.log
> (And no, no output to show in log. Nothing there)
> 
> 
> 
> system dmesg:
> 
> OpenBSD 6.0 (GENERIC.MP) #2: Sun Dec 11 10:57:09 CST 2016
> r...@traveler2.com:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> RTC BIOS diagnostic error 
> f7
> real mem = 4156084224 (3963MB)
> avail mem = 4025651200 (3839MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xb8c36000 (44 entries)
> bios0: vendor LENOVO version "92CN30WW(V1.10)" date 05/16/2014
> bios0: LENOVO 20332
> 

Problem downloading and sending email

2016-12-13 Thread Denny White
Am running 6.0 Release with all patches up
to date. I've installed mutt, fetchmail,
getmail, procmail, & msmtp. Had rough time
setting up mutt trying to remember how to
use Mail vs mbox but got it working. Got
both getmail & fetchmail to d/l email from
my gmail account, but both have same problem:
they keep downloading old messages instead
of new. I've tried all sorts of ways with
fetchmail using 'no fetchall' to no avail.
Same with getmail. I also am unable to send
mail from mutt using msmtp. Am pasting in
all relevant *.rc's. Don't know if a dmesg
will help, but remember it's more often 

than not standard practice when asking ??s
on @misc. Thanks for any help might come
my way. Seriously! :)



.muttrc
set realname = 
set from = 
set use_from = yes
set envelope_from ="yes"
set sendmail="/usr/local/bin/msmtp"
set spoolfile = ~/Mail/inbox
set folder="~/Mail"
set record="+sent"
set postponed="+postponed"
set mbox_type=mbox
set move=no
ignore *
unignore Date: From: User-Agent: X-Mailer X-Operating-System To: \
Cc: Reply-To: Subject: Mail-Followup-To:
hdr_order Date: From: User-Agent: X-Mailer X-Operating-System To: \
Cc: Reply-To: Subject: Mail-Followup-To:
set editor="vim -c 'set tw=70 et' '+/^$' "
set edit_headers=yes
set markers
set smart_wrap
set pager_context=10
push 
#set_signature=~/.signature



.fetchmailrc
set logfile /home/tobias/.fetchmail.log
set no bouncemail
poll pop.gmail.com proto POP3 auth password no dns user 
"x...@gmail.com" pass "" is  keep ssl
mda "/usr/local/bin/procmail -d %T"
options
#verbose
#no fetchall
#sslcertck
#sslcertpath /etc/ssl/cert.pem
(adding now as posting. The certs work okay but without
any added switches like the ones here that are commented
out.)


#set postmaster ""
#set logfile /home//.fetchmail.log
#set polling time (5 minutes)
#:set daemon 600

#poll pop.gmail.com with proto POP3 
#user '@x...@gmail.com' there with password '' is  here 
keep no fetchall ssl sslcertck sslcertpath /etc/ssl/cert.pem

# fetchmail -d0 -vk pop.gmail.com



getmailrc
[retriever]
type = SimplePOP3SSLRetriever
server = pop.gmail.com
port = 995
username = 
password = 

[destination]
type = MDA_external
path = /usr/local/bin/procmail
arguments = ('-f', "%(sender)")
#arguments = ('~/.procmailrc', '-f', "%(sender)")
(While composing this email tried couple other
switches with getmail try to stop it from d/l
old read msgs, but it still did it. tried this:
read_all = false
delete = false
Was no help)



.procmailrc (putting this in just to be safe. Actually
does work okay putting everything in mutt)
PATH=/bin:/usr/bin:/usr/local/bin
VERBOSE=on  # Turn on for verbose log
DEFAULT=/home//Mail/inbox
MAILDIR=/home//Mail # Where Procmail recipes deliver
LOGFILE=$HOME/.procmaillog  # Keep a log for troubleshooting
# Recipes
:0:
* ^TOmutt-user
mutt



.msmtprc (not able to send mail from mutt with this *rc)
account default
host smtp.gmail.com
port 587
from "x...@gmail.com"
tls on
tls_starttls on
#tls_trust_file /etc/ssl/cert.pem
auth on
user "x...@gmail.com"
password "XX"
logile ~/.msmtp.log
(And no, no output to show in log. Nothing there)



system dmesg:

OpenBSD 6.0 (GENERIC.MP) #2: Sun Dec 11 10:57:09 CST 2016
r...@traveler2.com:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 
f7
real mem = 4156084224 (3963MB)
avail mem = 4025651200 (3839MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xb8c36000 (44 entries)
bios0: vendor LENOVO version "92CN30WW(V1.10)" date 05/16/2014
bios0: LENOVO 20332
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI MSDM HPET LPIT APIC MCFG SLIC SSDT SSDT SSDT SSDT 
SSDT SSDT SSDT UEFI SSDT FPDT BGRT
acpi0: wakeup devices XHC1(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) 
RP03(S4) PXSX(S4) RP04(S4) EHC1(S3) LID0(S3) PWRB(S4) BRCM(S0) BRC3(S0)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) CPU N3530 @ 2.16GHz, 2167.07 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu0: 1MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 83MHz
cpu0: