[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fetchmail +SMTP error




fetchmail by default will try to deliver the message to the To: and
Cc: recipients by looking at username part if I remember correctly.
This means, if your POP username is not the same as your login name,
message are lost (or sent to the postmaster fetchmail keyword).

That's why I use the "user popusername is loginname" syntax, that
way all messages (spam included) are delivered to me (loginname).

For your sendmail problem, you don't need to run sendmail in daemon
mode (-bd) if you don't want to. You can use the fetchmail "mda"
keyword to send directly to a program instead of localhost:smtp.

This is what I use for my POP accounts:

server pop.domain.com proto POP3 user pop_username is login_name \
	password XXXXXXXX mimedecode pass8bits fetchall \
	mda "/usr/local/bin/procmail -Y -f %F"

but mda could be this if you don't already use procmail for filtering:

	mda "/usr/libexec/mail.local -L -f %F %T"

or if you really want to use sendmail:

	mda "/usr/sbin/sendmail -oem -i -f %F %T"

Only sendmail is suid root, which mean only sendmail could be used
to deliver to somebody else than the user under which fetchmail runs.

Read the man page for fetchmail.

Read the disclaimer for %F %T.

Check every thing I said.


Hugo Villeneuve

On Thu, Mar 01, 2001 at 01:41:16PM -0700, David J. Jackson wrote:
> Brad ---
> 
> Thanks for your reply.
> I remembered seeing that in rc.conf , after reading Cam's replay. After 
> making that change,
> fetchmail did retrieve my email, but I don't no where ... mail(x) 
> doesn't retrieve it form the /var/mail
> or /var/spool/mqueue? Fetchmail seems to being sending it to /dev/null 
> (which will save on hd space :) ) .
> 
> Dave
> 
> 
> Brad wrote:
> 
> >> my email. Any suggestions ?
> >> 
> >> David Jackson
> >> 
> >> 
> >> sunwarship : davej % fetchmail mail.dnvr.qwest.net -u cjamblues
> >> Enter password for cjamblues@mail.dnvr.qwest.net: <mailto:cjamblues@mail.dnvr.qwest.net:>
> >> fetchmail: socket error while fetching from mail.dnvr.qwest.net
> >> 
> >> 34 messages for cjamblues at pop.dnvr.uswest.net (190338 octets).
> >> reading message 1 of 34 (2661 octets) .fetchmail: SMTP connect to localhost failed
> >> fetchmail: SMTP transaction error while fetching from mail.dnvr.qwest.net
> >> fetchmail: Query status=10 (SMTP)
> >