When you use the "mail" command localy, postfix uses "smtp" to attempt
deliver email to a local user. When incoming email arrives from network,
the process called is "smtpd" - Take a look in master.cf

Your fetchmail may cause problems due to the local delivery method used.
If you want to use fetchmail and pass the email through "smtpd" with
content filtering and virtual users, you have to tell fetchmail to use
an SMTP connection for example :

fetchmail --all --smtpaddress domain.com --smtphost 127.0.0.1

Then fetchmail won't try to use the LMTP, but SMTP connects to Postfix
and its "smtpd" process which follows the classic steps.

Hope this help!

Philippe Laquet


Ariën Huisken wrote:
>>>I have postfix with email users configured in /etc/postfix/virtual.
>>>
>>>All works fine when receiving mail on port 25, but there are many 
>>>mails in one single mailbox on the popserver of my isp left.
>>>
>>>I wish to fetch them and delivered to the users listed in virtual.
>>>
>>>Now if I start fetchmail I have no idea where the mails going to 
>>>after fetching, well not in the users mailboxes...
>>
>>As far as I know, fetchmail delivers directly to the local smtpd, so 
>>mail should end up exactly where it would if you send mail locally.
>>
>>You should check the mail log during a fetchmail run and see what happens.
>>
>>
>>>Here is my .fetcmailrc and I hope someone can give me a hint on 
>>>what's wrong:
>>
>>It looks bigger and more complex than needed. But I don't know too 
>>much about what's needed for that ISP..
>>
>>My working .fetchmailrc:
>>poll "pop.myisp.com" with proto POP3 user "info" password "kajhdbc" ssl
>>
>>This delived the mail to local smtp, the ssl-part can be skipped if 
>>no ssl is available.
>>
> 
> 
> After some testing I think the problem is not fetchmail, but postfix. 
> Postfix is set up to use virtual domains where the domainname and users 
> are defined, but they are not working when fetchmail drops the mail.
> 
> /etc/postfix/virtual:
> domain.com           domain
> [EMAIL PROTECTED]   user1
> [EMAIL PROTECTED]   user1,user2
> @domain.com          user2
> 
> I tried to send mail with 'mail -s test [EMAIL PROTECTED] < /some/file' 
> but the mail isn't accepted locally. It is send to the MX host of 
> domain.com: pop.domain.com
> 
> I put domain.com in main.cf as mydestination and now the mail is 
> delivered to root. According to virtual it should be delivered to user2.
> 
> So from the commandline postfix is not using my /etc/postfix/virtual at 
> all. The same happens when fetchmail retrieves the mail from a 
> popserver.
> 
> Anyone please?
> 
> --
> Ariën Huisken
> 
> 
> _______________________________________________
> tsl-discuss mailing list
> [email protected]
> http://lists.trustix.org/mailman/listinfo/tsl-discuss

        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to