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

Re: Postfix + fetchmail problem



On Fri, 2004-02-27 at 02:26, David Clymer wrote:
> I've been an exim user for quite a while now, but recently decided to
> fool with Postfix a bit. I'm also attempting to become a trial
> fetchmail+mutt user.
> 
> So, I set up Postfix to relay mail through my remote mailserver
> using smtp authentication, and set up fetchmail to grab my mail.
> 
> The problem is that when I invoke fetchmail, it downloads my mail,
> but Postfix promptly attempts to relay it to the remote mail server
> rather than delivering it to my local account.
> 

the fetchmail local delivery part is working now.

> I've thus far been unable to figure out why this is happening. Mail
> between local users is delivered locally, and I can send to remote
> addresses without problems.
> 

Ok, it seems I was lieing about this. SMTP auth doesnt seem to be
working after all. My original test was a stupid one.

Looking at my logs, I see this:

Feb 27 13:19:13 localhost postfix/master[5756]: warning: process
/usr/lib/postfix/smtp pid 5885 exit status 1
Feb 27 13:19:13 localhost postfix/master[5756]: warning:
/usr/lib/postfix/smtp:bad command startup -- throttling
Feb 27 13:20:13 localhost postfix/smtp[5898]: fatal: specify a password
table via the `smtp_sasl_password_maps' configuration parameter

As can be seen in my config below, I've specified the
smtp_sasl_password_maps as /etc/postfix/sasl_passwd and provided the map
as demonstrated in /usr/share/doc/postfix/examples/sample-smtpd.cf.gz

I've changed the permissions of my sasl_passwd file to 600, but
originally it was 644, and the problem was still occuring. My
understanding is that postix starts as root reads all the "must read as
root" files, then switches to a less priveliged user, so I dont think
the permissions should be a problem

I've poured over
http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailservers.html,
and it seems I am doing everything the same...I'm stumped.

Google mostly returns results in languages I only partially understand,
and the solutions that others have found dont seem to apply in my case -
they dont work for me, at least.

> If anyone has any insight into this problem or can point me to a
> relevant portion of TFM, I'd be greatful.
> 
> My Postfix main.cf is as follows:
> ---------------------------------------------------------
> # see /usr/share/postfix/main.cf.dist for a commented, fuller
> # version of this file.
>  
> # Do not change these directory settings - they are critical to Postfix
> # operation.
> command_directory = /usr/sbin
> daemon_directory = /usr/lib/postfix
> program_directory = /usr/lib/postfix
> setgid_group = postdrop
>  
> # appending .domain is the MUA's job.
> append_dot_mydomain = no
>  
> smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
> biff = no
>  
> # Uncomment the next line to generate delayed mail warnings
> #delay_warning_time = 4h
>  
> myhostname = zepto.local.localdomain
> mydomain = local.localdomain
> alias_maps = hash:/etc/aliases
> alias_database = hash:/etc/aliases
> mydestination = $myhostname, localhost.$mydomain, $mydomain
>  
> # relay my outgoing mail
> smtp_sasl_auth_enable = yes
> smtp_sasl_passwd_maps = hash:/etc/postfix/sasl_passwd

I added here:
 smtp_sasl_security_options=  

> relayhost = mail.zettazebra.com
>  
> mynetworks = 127.0.0.0/8
> mailbox_command = procmail -a "$EXTENSION"
> mailbox_size_limit = 0
> recipient_delimiter = +
> myorigin = /etc/mailname
> --------------------------------------------------------
> 
> 
> My .fetchmailrc is below:
> --------------------------------------------------------
> poll mail.zettazebra.com proto pop3
>   user "david@zettazebra.com" with password "xxxx" is "david" here keep;
> --------------------------------------------------------
> 
> david@zepto:~$ cat /etc/mailname
> zepto.local.localdomain
> 
> david@zepto:~$ cat /etc/hosts
> 127.0.0.1       localhost zepto zepto.local.localdomain
>  
> # for testing purposes only
> #127.0.0.1      zettazebra.com  localhost
>  
> # The following lines are desirable for IPv6 capable hosts
> # (added automatically by netbase upgrade)
>  
> ::1     ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
> 
> I'm running debian/testing.
> 
> -davidc
> 



Reply to: