This is expected behaviour.

--user (or -u) is not a selector, but only overrides the default (which
is the user name of the user running fetchmail).

Effectively, the -u option overrides all username stanzas.

I am demoting this to wishlist because it matches documentation:

*We would need an option to specify and match the username in addition
to the pollname.* This is not fetchmail 6.x stuff, however, it will have
to wait for 7.x.

The workaround is to use a pollname that is distinct from the server's
host name.  It might look like (untested):

  skip fred-pop.safe-mail.net via pop.safe-mail.net
          protocol imap
          port     993
          interval 3
          username "fred.flintst...@safe-mail.net"
          ssl
          sslcertck
          fetchall

...
  skip barney-pop.safe-mail.net via pop.safe-mail.net
          protocol imap
          port     993
          interval 3
          username "barney.rub...@safe-mail.net"
          ssl
          sslcertck
          fetchall

 ... (the same scheme for wilma).

The poll name (the ...-pop.safe-mail.net right after skip) now no longer
specifies the server name, but only an internal name to fetchmail. The
actual host name goes after "via".

It's a bit longer to spell out, but should solve your problem.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to