Postfix on a machine without unix users

This is a discussion on Postfix on a machine without unix users within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hello, I want to set up a machine with postfix and cyrus on debian etch. The mail users are not ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-07-2007
Harry Knitter
 
Posts: n/a
Default Postfix on a machine without unix users

Hello,

I want to set up a machine with postfix and cyrus on debian etch.
The mail users are not in /etc/passwd
Cyrus users are autheticated against sasldb2

How can I get postfix to deliver the mails to cyrus.
I always get User unknown in local recipient table

Thanks in advance

Harry

Reply With Quote
  #2 (permalink)  
Old 07-11-2007
Mikko Toivola
 
Posts: n/a
Default Re: Postfix on a machine without unix users

Harry Knitter wrote:
> Hello,
>
> I want to set up a machine with postfix and cyrus on debian etch.
> The mail users are not in /etc/passwd
> Cyrus users are autheticated against sasldb2
>
> How can I get postfix to deliver the mails to cyrus.
> I always get User unknown in local recipient table
>
> Thanks in advance
>
> Harry
>


First of all, I would suggest using something else than plain sasldb2,
use mysql or LDAP instead, for maintainability. MySQL is the easy way to
go, check for example http://www.web-cyradm.org/ . There should be nice
faqs and howtos to follow, for setting the whole system up. That way you
also learn about the system you're about to build (postfix+cyrus)

You need to specify the mailbox_transport in postfix to deliver mail to
cyrus, and you also need to specify alias_maps or virtual_alias maps to
get rid of the User unknown -stuff.

I strongly recommendate using SQL instead of sasldb & textfile alias
maps. You're happier afterwards.

Mikko
Reply With Quote
  #3 (permalink)  
Old 07-11-2007
Klaus Zerwes
 
Posts: n/a
Default Re: Postfix on a machine without unix users

Harry Knitter wrote:
> Hello,
>
> I want to set up a machine with postfix and cyrus on debian etch.
> The mail users are not in /etc/passwd
> Cyrus users are autheticated against sasldb2
>
> How can I get postfix to deliver the mails to cyrus.
> I always get User unknown in local recipient table
>
> Thanks in advance


.... long time since I used cyrus.
As far as I can remember you must use cyrdeliver.
postfix -> cyrdeliver -> cyrus

> Harry


Klaus


--
Klaus Zerwes
http://zero-sys.net
Reply With Quote
  #4 (permalink)  
Old 07-11-2007
Mikko Toivola
 
Posts: n/a
Default Re: Postfix on a machine without unix users

Klaus Zerwes wrote:
> Harry Knitter wrote:


> ... long time since I used cyrus.
> As far as I can remember you must use cyrdeliver.
> postfix -> cyrdeliver -> cyrus
>


Actually, using LMTP instead of cyrdeliver is recommended. Nothing wrong
with cyrdeliver, especially if postfix and cyrus are on the same machine.

quote:
> 'cyrdeliver' (which is assume to be 'deliver' renamed) is a front-end to
> LMTP-delivery; basically, it's a pipeline you can use if your MTA
> doesn't support LMTP (or you want to inject messages into Cyrus using
> something other than your MTA).

(http://lists.andrew.cmu.edu/pipermai...ry/009324.html)

Here are examples of the configuration directives when using direct
LMTP-transport:

imapd.conf:
lmtpsocket: /var/run/cyrus/socket/lmtp

cyrus.conf: (SERVICES-section, all in one row):
lmtpunix cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp"
prefork=0 maxchild=20

postfix main.cf:
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp



Mikko
Reply With Quote
  #5 (permalink)  
Old 07-11-2007
Klaus Zerwes
 
Posts: n/a
Default Re: Postfix on a machine without unix users

Mikko Toivola wrote:
> Klaus Zerwes wrote:
>> Harry Knitter wrote:

>
>> ... long time since I used cyrus.
>> As far as I can remember you must use cyrdeliver.
>> postfix -> cyrdeliver -> cyrus
>>

>
> Actually, using LMTP instead of cyrdeliver is recommended. Nothing wrong
> with cyrdeliver, especially if postfix and cyrus are on the same machine.


[...]


> Mikko



Thanks for updating my brain!

And I assume this will answer all questions of the op.

Klaus



--
Klaus Zerwes
http://zero-sys.net
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0