Re: Different Postfix and Cyrus Machines

2016-05-14 Thread Badirca Dorian-Catalin via Info-cyrus
I figured out,
There are two parameters in Postfix-main.cf that needs to be added in order to 
make the local transport to the Cyrus machine and these are:local_transport = 
lmtp:inet:[IP_ADDRESS]local_recipient_maps = mysql:/...
The mailbox_transport I removed.
 

On Sunday, May 15, 2016 2:53 AM, Badirca Dorian-Catalin via Info-cyrus 
 wrote:
 

 Hi,
I want to different machines for Postfix, Cyrus IMAP and MySQL. Everything 
works well except the local delivery part. I think Postfix does not know how to 
deliver the mail to Cyrus.
This is how I have them configured:
###Postfix main.cf ###mailbox_transport = lmtp:inet:[IP_ADDRESS]
###Cyrus cyrus.conf ###  lmtp  cmd="lmtpd -a" 
listen="[192.168.1.78]:24" proto=tcp4 prefork=1
  lmtpunix  cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0

Every time I send an email to an address that I created with cyradm I get the 
Recipient address rejected: User unknown in local recipient table error message.
Is there any place I can find additional documentation about my kind of setup 
(except mans). Does anyone have different Cyrus and Postfix machines and knows 
what wrong config I have ?
Thank you for your time !



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

  
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Different Postfix and Cyrus Machines

2016-05-14 Thread Badirca Dorian-Catalin via Info-cyrus
Hi,
I want to different machines for Postfix, Cyrus IMAP and MySQL. Everything 
works well except the local delivery part. I think Postfix does not know how to 
deliver the mail to Cyrus.
This is how I have them configured:
###Postfix main.cf ###mailbox_transport = lmtp:inet:[IP_ADDRESS]
###Cyrus cyrus.conf ###  lmtp  cmd="lmtpd -a" 
listen="[192.168.1.78]:24" proto=tcp4 prefork=1
  lmtpunix  cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0

Every time I send an email to an address that I created with cyradm I get the 
Recipient address rejected: User unknown in local recipient table error message.
Is there any place I can find additional documentation about my kind of setup 
(except mans). Does anyone have different Cyrus and Postfix machines and knows 
what wrong config I have ?
Thank you for your time !


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Autoresponder with Postfix and Cyrus

2005-12-23 Thread Mathias Wrede
* Henrique de Moraes Holschuh wrote:
>> I want to create replies to the from-address.
>
> Make triple sure to key this to some content your formmailer inserts, or to
> the envelope sender.  Otherwise you might find people being "opted-in"
> against their will.

Thanks for all hints. Now I've realised it with an individual filter and
the autoresponder of the ISP.

Regards
Mathias


Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Autoresponder with Postfix and Cyrus

2005-12-22 Thread Henrique de Moraes Holschuh
On Thu, 22 Dec 2005, Mathias Wrede wrote:
> I want an automated opt-in for a newsletter. The recipients can
> describe it on a web-form. The formmailer is under control of the
> hoster.
> I want to create replies to the from-address.

Make triple sure to key this to some content your formmailer inserts, or to
the envelope sender.  Otherwise you might find people being "opted-in"
against their will.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Autoresponder with Postfix and Cyrus

2005-12-22 Thread Sven Mueller
Mathias Wrede wrote on 22/12/2005 19:04:
> I hope there's someone who could give me a hint.
> 
> I would like to create an autoresponder for one IMAP-mailbox. I know
> about sieve vacation but this won't work. All replies are sent to the
> envelope-sender and not to sender (from).
[...]
> I want to create replies to the from-address.

Neither postfix nor cyrus (except sieve) ever look at the content of a
mail (and the From: header line is just a part of this content), they
only see the envelope. So you will have to use some external script
invoked from the MTA's (i.e. postfix's) aliases file. Which means that
if you use virtual domains, you will first need a virtual alias
redirecting the mail to a "local" address (mydestination), which is then
sent to the external script by a normal alias.

Using a proper mailinglist software and adjusting the formmailer output
(the mail it sends) to match that might be a better way then doing this
all by yourself.

cu,
sven

Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Autoresponder with Postfix and Cyrus

2005-12-22 Thread Mathias Wrede
Hi Baltasar,

thanks for your hints.

Baltasar Cevc wrote:
> you have two possibilities:
> 
> 1) use sieve (sending it back to the envelope sender is exactly the
> expected behaviour, so I'd say it does work well).

This makes no sense for my requirements. The "from sender" initiates the
mail from a website, by typing his mail address. He has to confirm the
autoresponse. Envelope sender is the hoster of the site.

> 2) Use aliases in Postfix and some external tool (e.g. "vacation") to
> do the actual vacation message handling.

That's my current state (of concept). But I need a little more time to
realise it. Until that I've implemented it in the autoresponder of the
ISP, wich replies to the from address.

Bye
Mathias

Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Autoresponder with Postfix and Cyrus

2005-12-22 Thread Mathias Wrede
Hi NG,

I hope there's someone who could give me a hint.

I would like to create an autoresponder for one IMAP-mailbox. I know
about sieve vacation but this won't work. All replies are sent to the
envelope-sender and not to sender (from).

 , [ Header ] 
|  Received: from unknown (HELO server.hosterdomain.de) ([1.2.3.4])
|(envelope-sender <[EMAIL PROTECTED]>)
|by mx99.hosterdomain.de (qmail-ldap-1.03) with SMTP
|for <[EMAIL PROTECTED]>; 21 Dec 2005 16:15:42 -
|  ...
|  To: [EMAIL PROTECTED]
|  From: [EMAIL PROTECTED] ()
|  Subject: Newsletter-Abo anmelden
 `

I want an automated opt-in for a newsletter. The recipients can
describe it on a web-form. The formmailer is under control of the
hoster.
I want to create replies to the from-address.

Thanks for any hints.

Mathias


Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Postfix and Cyrus virtual setup

2005-07-08 Thread Jason Walker
Sorry, maybe I wasn't clear. I'd like do do this manually, how do I do
it? I'm messing with transports now but am not having any luck.

Jason Walker

Paul Dorneanu wrote:
> Sure... I am using PostfixAdmin. It's very nice.
> http://high5.net/postfixadmin/
>
> Jason Walker wrote:
>
>> I'm not using web-cyradm at this point. Is there a way to do this
>> without web-cyradm?
>>
>> Jason Walker
>>
>> Howard Shere wrote:
>>
>>
>>> On Jul 7, 2005, at 3:48 PM, Jason Walker wrote:
>>>
>>>
>>>
I have setup my mail server to use Postfix for SMTP and am using
 Cyrus
 for IMAP. I'm trying to create a virtual alias of sorts for
 addresses in
 a specific virtual domain. We are moving from first name, last initial
 to first initial, last name and so of course need to make aliases for
 the old style. here's an example of how I need mail forwarded/aliased
 for a user named "John Doe":

 [EMAIL PROTECTED]: [EMAIL PROTECTED]

I realize this might be more of a Postfix issue than Cyrus, but
 thought
 I would ask here anyways.


>>>
>>> You should be able to do this in web-cryadm by adding a 2nd email
>>> address to each account. postfix will pic that up and deliver mail for
>>> both addresses to the same account. There is no need for an alias file.
>>>
>>> Howard Shere
>>> Altair 8800a to Mac OS X so far...
>>>
>>> ---
>>> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
>>> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
>>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>>>
>
> ---
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


signature.asc
Description: OpenPGP digital signature


Re: Postfix and Cyrus virtual setup

2005-07-08 Thread Howard Shere


On Jul 8, 2005, at 8:24 AM, Jason Walker wrote:


I'm not using web-cyradm at this point. Is there a way to do this
without web-cyradm?



I would guess that there is, but I have no idea. I set up web-cyradm 
when I setup everything else because I dislike having to type commands 
if I don't have to. web-cyradm also allows for domain specific admins 
so I can setup domains for others and then let them deal with creating 
their email addresses. Less work for me.



Howard Shere wrote:


On Jul 7, 2005, at 3:48 PM, Jason Walker wrote:


I have setup my mail server to use Postfix for SMTP and am using
Cyrus
for IMAP. I'm trying to create a virtual alias of sorts for 
addresses in
a specific virtual domain. We are moving from first name, last 
initial

to first initial, last name and so of course need to make aliases for
the old style. here's an example of how I need mail forwarded/aliased
for a user named "John Doe":

[EMAIL PROTECTED]: [EMAIL PROTECTED]

I realize this might be more of a Postfix issue than Cyrus, but
thought
I would ask here anyways.



You should be able to do this in web-cryadm by adding a 2nd email
address to each account. postfix will pic that up and deliver mail for
both addresses to the same account. There is no need for an alias 
file.




Howard Shere
Altair 8800a to Mac OS X so far...

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Postfix and Cyrus virtual setup

2005-07-08 Thread Paul Dorneanu

Sure... I am using PostfixAdmin. It's very nice.
http://high5.net/postfixadmin/

Jason Walker wrote:


I'm not using web-cyradm at this point. Is there a way to do this
without web-cyradm?

Jason Walker

Howard Shere wrote:
 


On Jul 7, 2005, at 3:48 PM, Jason Walker wrote:

   


   I have setup my mail server to use Postfix for SMTP and am using
Cyrus
for IMAP. I'm trying to create a virtual alias of sorts for addresses in
a specific virtual domain. We are moving from first name, last initial
to first initial, last name and so of course need to make aliases for
the old style. here's an example of how I need mail forwarded/aliased
for a user named "John Doe":

[EMAIL PROTECTED]: [EMAIL PROTECTED]

   I realize this might be more of a Postfix issue than Cyrus, but
thought
I would ask here anyways.

 


You should be able to do this in web-cryadm by adding a 2nd email
address to each account. postfix will pic that up and deliver mail for
both addresses to the same account. There is no need for an alias file.

Howard Shere
Altair 8800a to Mac OS X so far...

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
   


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Postfix and Cyrus virtual setup

2005-07-08 Thread Jason Walker
I'm not using web-cyradm at this point. Is there a way to do this
without web-cyradm?

Jason Walker

Howard Shere wrote:
>
> On Jul 7, 2005, at 3:48 PM, Jason Walker wrote:
>
>> I have setup my mail server to use Postfix for SMTP and am using
>> Cyrus
>> for IMAP. I'm trying to create a virtual alias of sorts for addresses in
>> a specific virtual domain. We are moving from first name, last initial
>> to first initial, last name and so of course need to make aliases for
>> the old style. here's an example of how I need mail forwarded/aliased
>> for a user named "John Doe":
>>
>> [EMAIL PROTECTED]: [EMAIL PROTECTED]
>>
>> I realize this might be more of a Postfix issue than Cyrus, but
>> thought
>> I would ask here anyways.
>>
>
> You should be able to do this in web-cryadm by adding a 2nd email
> address to each account. postfix will pic that up and deliver mail for
> both addresses to the same account. There is no need for an alias file.
>
> Howard Shere
> Altair 8800a to Mac OS X so far...
>
> ---
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


signature.asc
Description: OpenPGP digital signature


Re: Postfix and Cyrus virtual setup

2005-07-07 Thread Howard Shere


On Jul 7, 2005, at 3:48 PM, Jason Walker wrote:


I have setup my mail server to use Postfix for SMTP and am using Cyrus
for IMAP. I'm trying to create a virtual alias of sorts for addresses 
in

a specific virtual domain. We are moving from first name, last initial
to first initial, last name and so of course need to make aliases for
the old style. here's an example of how I need mail forwarded/aliased
for a user named "John Doe":

[EMAIL PROTECTED]: [EMAIL PROTECTED]

	I realize this might be more of a Postfix issue than Cyrus, but 
thought

I would ask here anyways.



You should be able to do this in web-cryadm by adding a 2nd email 
address to each account. postfix will pic that up and deliver mail for 
both addresses to the same account. There is no need for an alias file.


Howard Shere
Altair 8800a to Mac OS X so far...

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Postfix and Cyrus virtual setup

2005-07-07 Thread Jason Walker
Greetings,

I have setup my mail server to use Postfix for SMTP and am using Cyrus
for IMAP. I'm trying to create a virtual alias of sorts for addresses in
a specific virtual domain. We are moving from first name, last initial
to first initial, last name and so of course need to make aliases for
the old style. here's an example of how I need mail forwarded/aliased
for a user named "John Doe":

[EMAIL PROTECTED]: [EMAIL PROTECTED]

I realize this might be more of a Postfix issue than Cyrus, but thought
I would ask here anyways.
Presently I have this in my /etc/postfix/main.cf:

mailbox_transport = cyrus
virtual_transport = cyrus

As the virtual transport is now cyrus instead of postfix's "virtual"
delivery agent, I don't have any documentation on how to make this work
as everything about Postfix vhosting is in regards to their "virtual" agent.
Any insight would be helpful. Thanks in advance

Jason Walker


signature.asc
Description: OpenPGP digital signature


Postfix and Cyrus Imapd with multiple domains

2004-10-11 Thread Bruce H
I'm setting up a Linux server using Cyrus 2.1.16 and Postfix 2.1.0.  I
currently have Postfix setup
to deliver mail through lmtp to Cyrus.  The server will be hosting two
domains (on the same IP address)
so I have setup Cyrus IMAP to use usernames that are the entire user's email
address, i.e.

"[EMAIL PROTECTED]".

 I was able to get this working by setting:

unixhierarchysep: yes

 in the imapd.conf file.  This allowed me to use cyradm to create new
mailboxes like this:
"cm user/[EMAIL PROTECTED]"

The IMAP portion seems to work fine.  I can login to the imap server using
the full email address as
described above and I can see the mailbox with no problems.

My problem, however, is getting incoming mail to the mailbox.  As I said,
Postfix is setup to use lmtp for mail delivery and there doesn't seem to be
any problem in it connecting and trying to send the mail to cyrus, however,
the Cyrus lmtp agent always seems to be sending back a 550 User unknown
error back to Postfix.   The error in the log is something like this:

relay=public/lmtp[public/lmtp], delay=0, status=bounced (host
public/lmtp[public/lmtp] said:
550-Mailbox unknown. Either there is no mailbox associated with this
550-name or you do not
have authorization to see it.

The RCPT TO in the log seems to show the correct address
([EMAIL PROTECTED]).

For Postfix, I have a /etc/postfix/vmailbox file that right now simply has:
[EMAIL PROTECTED]  whatever

My /etc/postfix/main.cf has the following lines:
virtual_transport = lmtp:unix:public/lmtp
virtual_mailbox_domains = domain.com, domain2.com
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_alias_maps = hash:/etc/postfix/virtual

If I go back into cyradm and create a mailbox for "user/testuser", then the
mail does get delivered.  So, I'm not sure if the problem lies with
cyrus-imap not translating the RCPT TO address into the proper mailbox or
whether Postfix is not supplying some key piece of info that the cyrus lmtp
agent needs to know in order to route the mail properly.

Anyone have any ideas?  Would it help to change the transport to a piped
command where I might have some control over the mailbox name?







---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Postfix and Cyrus-IMAP using virtdomains: userid and SQL

2004-05-26 Thread Psi-Jack
I'm trying to setup my postfix to use PgSQL lookups for virtual domains, 
and to deliver mail for virtual domains into Cyrus-IMAP.

My method is to use Cyrus-IMAP's virtdomains: userid option, so that 
Cyrus-IMAP uses it's built-in virtual-domains support and mailboxes that 
are accessable as [EMAIL PROTECTED]

Now, does anyone know any ideas of how to actually get Postfix itself to 
actually /deliver/ mail to [EMAIL PROTECTED] into Cyrus-IMAP, and what 
kind of SQL structures and lookups I'd need to do to actually fully 
accomplish this task?

I have my virtual_alias_maps pulling pgsql queries out and apparently 
looking up [EMAIL PROTECTED] if it exists, and if so, returns that 
exact same [EMAIL PROTECTED] It accepts mail for it, but when it gets 
beyond that, I get an error with postfix:

May 25 23:06:29 netgear postfix/error[37479]: DAAE117043: 
to=<[EMAIL PROTECTED]>, relay=none, delay=1, status=bounced (User unknown 
in virtual alias table)

And so, it bounces it back after it's already accepted it.
Any ideas anyone?
Eric
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Some questions about Postfix and Cyrus

2004-03-11 Thread Andreas Winkelmann
Am Donnerstag, 11. März 2004 18:03 schrieb Luca Manganelli:

> 2) I configured Postfix to use LMTP negotiation with Cyrus.
>    But when I connect to Postfix, I see that it's not 100%
>    SMTP compatible. i.e.:

> RCPT TO: [EMAIL PROTECTED],[EMAIL PROTECTED]
> 501 Bad address syntax

> the status and error codes are from Cyrus LMTP. But the
> RCPT TO: is a valid SMTP syntax (and not LMTP). So,
> this interface is unusable for normal email clients...
> The negotiation is NOT queued, but is done in real-time
> with Cyrus..

Please show us the RFC, where such a "RCPT TO" is documented.

-- 
Andreas


---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Some questions about Postfix and Cyrus

2004-03-11 Thread Luca Manganelli
Hi,

I have some questions.

1) Can Postfix access to Cyrus's Maildir and vice-versa?

2) I configured Postfix to use LMTP negotiation with Cyrus.
   But when I connect to Postfix, I see that it's not 100%
   SMTP compatible. i.e.:


telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 ksmail-test.kmailcert.it ESMTP Postfix
MAIL FROM: [EMAIL PROTECTED]
250 Ok
RCPT TO: [EMAIL PROTECTED],[EMAIL PROTECTED]
501 Bad address syntax


the status and error codes are from Cyrus LMTP. But the
RCPT TO: is a valid SMTP syntax (and not LMTP). So,
this interface is unusable for normal email clients...
The negotiation is NOT queued, but is done in real-time
with Cyrus..
How can I do?

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.618 / Virus Database: 397 - Release Date: 09/03/2004
 

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: postfix and cyrus

2003-04-04 Thread John Lederer
Thanks -- but I see it has a value of 2, making me suspect that I am 
totally wrong about the cause.

Anyone have any good ideas?

John

Mitrana Cristian wrote:

John Lederer wrote:

I am running postfix with cyrus 2.1.2.

I ocasionally get the following error message in the log:

Apr  3 10:16:46 mail lmtpd[1983]: duplicate_mark: closing 
/var/lib/imap/deliverdb/deliver-b.db: DB_INCOMPLETE: Cache flush was 
unable to complete
Apr  3 10:16:46 mail lmtpd[2226]: duplicate_check: closing 
/var/lib/imap/deliverdb/deliver-b.db: DB_INCOMPLETE: Cache flush was 
unable to complete

I suspect that postifx is feeding cyrus faster than cyrus can take 
it.  If that seems likely, is there a good way to throttle the flow?

John Lederer

try setting XXX_destination_concurrency_limit (where XXX could be 
local/virtual/etc, what you use to deliver to lmtpd) in main.cf.

mitu






Re: postfix and cyrus

2003-04-04 Thread Mitrana Cristian
John Lederer wrote:
I am running postfix with cyrus 2.1.2.

I ocasionally get the following error message in the log:

Apr  3 10:16:46 mail lmtpd[1983]: duplicate_mark: closing 
/var/lib/imap/deliverdb/deliver-b.db: DB_INCOMPLETE: Cache flush was 
unable to complete
Apr  3 10:16:46 mail lmtpd[2226]: duplicate_check: closing 
/var/lib/imap/deliverdb/deliver-b.db: DB_INCOMPLETE: Cache flush was 
unable to complete

I suspect that postifx is feeding cyrus faster than cyrus can take it.  
If that seems likely, is there a good way to throttle the flow?

John Lederer

try setting XXX_destination_concurrency_limit (where XXX could be 
local/virtual/etc, what you use to deliver to lmtpd) in main.cf.

mitu



postfix and cyrus

2003-04-04 Thread John Lederer
I am running postfix with cyrus 2.1.2.

I ocasionally get the following error message in the log:

Apr  3 10:16:46 mail lmtpd[1983]: duplicate_mark: closing 
/var/lib/imap/deliverdb/deliver-b.db: DB_INCOMPLETE: Cache flush was 
unable to complete
Apr  3 10:16:46 mail lmtpd[2226]: duplicate_check: closing 
/var/lib/imap/deliverdb/deliver-b.db: DB_INCOMPLETE: Cache flush was 
unable to complete

I suspect that postifx is feeding cyrus faster than cyrus can take it.  
If that seems likely, is there a good way to throttle the flow?

John Lederer



Is postfix and cyrus support Virtual Host by IP ?

2003-03-13 Thread Temp
Hi, all

I have three domains and I want to config all
with one machine, and I have three IP and domain name
for them

could postfix and cyrus or others support virtual host based IP??
and if yes, how to set up such site ??

Thanks

T


Re: postfix and cyrus + excuse for yesterday's post

2003-03-07 Thread Markus Welsch
I can only say 2 words to this :-)

	THANK YOU :-)



Re: postfix and cyrus + excuse for yesterday's post

2003-03-07 Thread Henrique de Moraes Holschuh
On Fri, 07 Mar 2003, Markus Welsch wrote:
> Postfix 1.11. I could switch to a later version of Postfix - preferable 
> available as Debian package (like I'd prefer installing Cyrus as Debian 
> package also to ease maintenance for others).

http://people.debian.org/~hmh/  

(it has backports of postfix, cyrus 2.1, amavisd-new, spamassassin,
squirrelmail...).   A new backport of postfix will be done as soon as 2.0.6
hits the unstable archive (and I can include the mysql drivers, then, if
they are not in the backport archive yet).

> Maybe somebody can point me to a howto, cause I've been searching the web 

Make sure you read the docs in the cyrus 2.1 Debian package.  They will
teach you enough to get a cyrus+postfix system working without mysql, and
then you just need to add mysql to the mix.  Which should be easy, since
both postfix and SASL can talk to mysql.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Re: postfix and cyrus + excuse for yesterday's post

2003-03-07 Thread Andrew Koros
I refered to RedHat becuase that is what I'am using. It would be hard to
support or answer questions about debian or SuSe becuase I do not have
them installed here.

Luc's document is more general and it will work with debian,FreeBSD or
slackware I think. Maybe you should try that document instead.

Regards,

Andrew

On Fri, 2003-03-07 at 13:46, Markus Welsch wrote:
> Thanks for your help so far :-)
> 
> Another question: Any particular reason for making this tutorial specific to
> RedHat (base software install). I will have to build cyrus, etc from source
> anyways since it's not declared as stable in the versions you've mentioned on 
> Debian (at least not till now)
> 
> I might post a request for help if I fail at some level then ...
> 
> 
> Could the quota restrictions also be stored (along with the user/password
> information) in the database ?
> 
> 
> Kind regards,
> 
> Markus
-- 
Andrew Koros
Developer, Systems Services
UUNET (Kenya) Ltd
http://www.uunet.co.ke
Tel: +254 2 69088618
Fax: +254 2 69088001
Email: [EMAIL PROTECTED]   


NOTICE: This e-mail message and all attachments transmitted with it may
contain legally privileged and confidential information intended solely
for the use of the addressee. If the reader of this message is not the
intended recipient, you are hereby notified that any reading,
dissemination, distribution, copying, or other use of this message or
its attachments is strictly prohibited. If you have received this
message in error, please notify the sender immediately by electronic
mail, and delete this message and all copies and backups thereof. Thank
you.



Re: postfix and cyrus + excuse for yesterday's post

2003-03-07 Thread Markus Welsch
Thanks for your help so far :-)

Another question: Any particular reason for making this tutorial specific to
RedHat (base software install). I will have to build cyrus, etc from source
anyways since it's not declared as stable in the versions you've mentioned on 
Debian (at least not till now)

I might post a request for help if I fail at some level then ...

Could the quota restrictions also be stored (along with the user/password
information) in the database ?
Kind regards,

Markus



Re: postfix and cyrus + excuse for yesterday's post

2003-03-07 Thread Andrew Koros
On Fri, 2003-03-07 at 13:46, Markus Welsch wrote:

> Could the quota restrictions also be stored (along with the user/password
> information) in the database ?

Yes all the quota info is in the database and the web-cyradm can even
run on a seperate machine since the cyrus administration can done over
tcp/ip socket by the web-cyradm.

> 
> Kind regards,
> 
> Markus
-- 
Andrew Koros
Developer, Systems Services
UUNET (Kenya) Ltd
http://www.uunet.co.ke
Tel: +254 2 69088618
Fax: +254 2 69088001
Email: [EMAIL PROTECTED]   


NOTICE: This e-mail message and all attachments transmitted with it may
contain legally privileged and confidential information intended solely
for the use of the addressee. If the reader of this message is not the
intended recipient, you are hereby notified that any reading,
dissemination, distribution, copying, or other use of this message or
its attachments is strictly prohibited. If you have received this
message in error, please notify the sender immediately by electronic
mail, and delete this message and all copies and backups thereof. Thank
you.



Re: postfix and cyrus + excuse for yesterday's post

2003-03-07 Thread Andrew Koros
For web-cyradm there is no specific advantage. But I was developing a
mail and RADIUS system for our company that was very complex and needed
Referential integrity checks and triggers which are only in PostgreSQL.


Hi,

For web-cyradm there is no specific advantage of postgresql over mysql. 
But I was developing a mail and RADIUS system for our company that was very
complex and needed referential integrity checks and triggers which are only
 in PostgreSQL.

In the process I decided to experiment on web-cyradm with postgresql and
documented it. With my document you can simply use mysql by just
installing pam-mysql and editing the pam.d/imap slightly and it would
work.

If you intend to extend the web-cyradm system and make it more complex
with triggers/checks e.t.c you are better off with postgresql. Otherwise
mysql is nice fast and simple.

While I have no benchmark tests, it's all about choice in the end. :-)

Andrew.

On Fri, 2003-03-07 at 12:57, Markus Welsch wrote:
> Has there be any specific reasons why you've decided to use postgresql ?
> 
> > Checkout Luc's howto for mysql at 
> > http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html
> > and my postgresql howto at
> > http://home.teleport.ch/simix/RPMS/Cyrus-imapd/contrib/Postfix+cyrus+postgreSQL+web-cyradm.pdf
> > 
> > Andrew.
-- 
Andrew Koros
Developer, Systems Services
UUNET (Kenya) Ltd
http://www.uunet.co.ke
Tel: +254 2 69088618
Fax: +254 2 69088001
Email: [EMAIL PROTECTED]   


NOTICE: This e-mail message and all attachments transmitted with it may
contain legally privileged and confidential information intended solely
for the use of the addressee. If the reader of this message is not the
intended recipient, you are hereby notified that any reading,
dissemination, distribution, copying, or other use of this message or
its attachments is strictly prohibited. If you have received this
message in error, please notify the sender immediately by electronic
mail, and delete this message and all copies and backups thereof. Thank
you.



Re: postfix and cyrus + excuse for yesterday's post

2003-03-07 Thread Markus Welsch
Has there be any specific reasons why you've decided to use postgresql ?

Checkout Luc's howto for mysql at 
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html
and my postgresql howto at
http://home.teleport.ch/simix/RPMS/Cyrus-imapd/contrib/Postfix+cyrus+postgreSQL+web-cyradm.pdf

Andrew.



Re: postfix and cyrus + excuse for yesterday's post

2003-03-07 Thread Markus Welsch
Hi,

Andrew Koros has created a nice howto. It's written for RedHat but that
shouldn't matter too much here:
http://home.teleport.ch/simix/RPMS/Cyrus-imapd/contrib/Postfix+cyrus+postgreSQL+web-cyradm.pdf
HTH
Simon
This looks like a very detailed guide and using MySQL rather than postfix won't 
make such a big difference here. Thanks for that nice link!

I'll post my results to this list afterwards ... maybe some quick and dirty 
setup guide using Woody :-)



Kind Regards,

Markus



Re: postfix and cyrus + excuse for yesterday's post

2003-03-07 Thread Andrew Koros
Checkout Luc's howto for mysql at 
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html
and my postgresql howto at
http://home.teleport.ch/simix/RPMS/Cyrus-imapd/contrib/Postfix+cyrus+postgreSQL+web-cyradm.pdf

Andrew.
On Fri, 2003-03-07 at 10:26, Markus Welsch wrote:
> Hi,
> 
> First of all I'd like to excuse my post for yesterday ... adressed that to the 
> wrong mailing list as I wrote the message in a hurry. Anyways Courier lacks for 
> quota support (without patching it) and I didn't find any valueable information 
> about it on the web. Anyways, Cyrus seems to be more advanced than Courier 
> anyways and supports quota's ...
> 
> I'd be happy to use Postfix and Cyrus as solution. But I'm needing some kind of 
> assistance here. Cyrus should get all user information (that is username, 
> password, quota) from a MySQL database. Currently I'm using Postfix 1.11. I 
> could switch to a later version of Postfix - preferable available as Debian 
> package (like I'd prefer installing Cyrus as Debian package also to ease 
> maintenance for others).
> 
> Maybe somebody can point me to a howto, cause I've been searching the web for 
> hours and didn't come accross any useful information. Maybe a howto from scratch 
> or several howto's would be a good idea.
> 
> 
> 
> Kind Regards,
> 
> Markus
-- 
Andrew Koros
Developer, Systems Services
UUNET (Kenya) Ltd
http://www.uunet.co.ke
Tel: +254 2 69088618
Fax: +254 2 69088001
Email: [EMAIL PROTECTED]   


NOTICE: This e-mail message and all attachments transmitted with it may
contain legally privileged and confidential information intended solely
for the use of the addressee. If the reader of this message is not the
intended recipient, you are hereby notified that any reading,
dissemination, distribution, copying, or other use of this message or
its attachments is strictly prohibited. If you have received this
message in error, please notify the sender immediately by electronic
mail, and delete this message and all copies and backups thereof. Thank
you.



Re: postfix and cyrus + excuse for yesterday's post

2003-03-07 Thread Simon Matter
Markus Welsch schrieb:
> 
> Hi,
> 
> First of all I'd like to excuse my post for yesterday ... adressed that to the
> wrong mailing list as I wrote the message in a hurry. Anyways Courier lacks for
> quota support (without patching it) and I didn't find any valueable information
> about it on the web. Anyways, Cyrus seems to be more advanced than Courier
> anyways and supports quota's ...
> 
> I'd be happy to use Postfix and Cyrus as solution. But I'm needing some kind of
> assistance here. Cyrus should get all user information (that is username,
> password, quota) from a MySQL database. Currently I'm using Postfix 1.11. I
> could switch to a later version of Postfix - preferable available as Debian
> package (like I'd prefer installing Cyrus as Debian package also to ease
> maintenance for others).
> 
> Maybe somebody can point me to a howto, cause I've been searching the web for

Andrew Koros has created a nice howto. It's written for RedHat but that
shouldn't matter too much here:
http://home.teleport.ch/simix/RPMS/Cyrus-imapd/contrib/Postfix+cyrus+postgreSQL+web-cyradm.pdf

HTH
Simon

> hours and didn't come accross any useful information. Maybe a howto from scratch
> or several howto's would be a good idea.
> 
> Kind Regards,
> 
> Markus


postfix and cyrus + excuse for yesterday's post

2003-03-06 Thread Markus Welsch
Hi,

First of all I'd like to excuse my post for yesterday ... adressed that to the 
wrong mailing list as I wrote the message in a hurry. Anyways Courier lacks for 
quota support (without patching it) and I didn't find any valueable information 
about it on the web. Anyways, Cyrus seems to be more advanced than Courier 
anyways and supports quota's ...

I'd be happy to use Postfix and Cyrus as solution. But I'm needing some kind of 
assistance here. Cyrus should get all user information (that is username, 
password, quota) from a MySQL database. Currently I'm using Postfix 1.11. I 
could switch to a later version of Postfix - preferable available as Debian 
package (like I'd prefer installing Cyrus as Debian package also to ease 
maintenance for others).

Maybe somebody can point me to a howto, cause I've been searching the web for 
hours and didn't come accross any useful information. Maybe a howto from scratch 
or several howto's would be a good idea.



Kind Regards,

Markus



Re: Postfix and Cyrus single instance message store?

2001-02-21 Thread Amos Gouaux

> On Mon, 12 Feb 2001 11:29:44 -0800,
> David R Bosso <[EMAIL PROTECTED]> (drb) writes:

drb> OK, I'm trying to get Cyrus IMAP 2.0.11 single instance message
drb> store working with Postfix (latest snapshot).

[...]

drb> So it looks like it's using a new lmtp process each time, which is
drb> not what I'd expect.

This was driving me nuts because I wasn't seeing this.  However,
we're using LMTP to dialog between the main MX host and the Cyrus
server, so naturally this Cyrus server is not in the Postfix
mydestination setting.

If the destination host is in mydestination, then the logic that's
used for local delivery kicks in, which means a message of multiple
recipients is broken out to a unique transaction for each recipient.

If your MX host is the same as your Cyrus host, you may have to fake
things a bit, at least for now.  You can use a virtual map to
redirect local recipients to some (possibly bogus) host that is NOT
listed in mydestination.  Then use this bogus host in a transport
map to deliver via lmtp.  Example:

/etc/postfix/main.cf:

 domain = example.org
 mydestination = mail.$domain, $domain


/etc/postfix/virtual:

 example.org lmtp.example.org


/etc/postfix/transport:

 lmtp.example.org lmtp:unix:/var/cyrus/socket/lmtp


There may be a better way to achieve this, but at least this should
work for now.

-- 
Amos




Followup: Re: Postfix and Cyrus single instance message store?

2001-02-21 Thread Amos Gouaux

> On 21 Feb 2001 10:51:55 -0600,
> Amos Gouaux <[EMAIL PROTECTED]> (ag) writes:

> On Mon, 12 Feb 2001 11:29:44 -0800,
> David R Bosso <[EMAIL PROTECTED]> (drb) writes:

drb> OK, I'm trying to get Cyrus IMAP 2.0.11 single instance message
drb> store working with Postfix (latest snapshot).

ag> [...]

drb> So it looks like it's using a new lmtp process each time, which is
drb> not what I'd expect.

ag> This was driving me nuts because I wasn't seeing this.  However,
ag> we're using LMTP to dialog between the main MX host and the Cyrus
ag> server, so naturally this Cyrus server is not in the Postfix
ag> mydestination setting.

Sorry to followup on myself, but this is really nifty for those that
have been struggling with this.  Today Wietse posted a patch to qmgr
that addresses this problem.  If you're not on the postfix-users
list, you can probably snag it from one of the archives, such as:

  http://msgs.SecurePoint.com/postfix/

After you apply this patch to one of the recent snapshots, you can
put something like this in your main.cf:

# Use LMTP for local delivery.
local_destination_recipient_limit = 3000
local_destination_concurrency_limit = 5
mailbox_transport = lmtp:unix:/var/cyrus/socket/lmtp

(Assuming your MX host and Cyrus host are on the same box.)

Now not only will you be able to take advantage of the Cyrus single
instance message store feature, but you don't have to do anything
twisted to get your aliases (like for mailing lists) to expand.  :-)

-- 
Amos




Re: Postfix and Cyrus single instance message store?

2001-02-12 Thread Amos Gouaux

> On Mon, 12 Feb 2001 11:29:44 -0800,
> David R Bosso <[EMAIL PROTECTED]> (drb) writes:

drb> max_use = 300
drb> lmtp_destination_recipient_limit = 1000
drb> lmtp_destination_concurrency_limit = 1000

Looks like they should still be valid.  You could experiment with
default_destination_recipient_limit
default_destination_concurrency_limit

drb> Here's what a delivery looks like in maillog:

What if you add "-v" to the end of the "lmtp" line in master.cf?
Then you'll see the actual protocol dialog:

lmtp  unix  -   -   n   --  lmtp -v

drb> So it looks like it's using a new lmtp process each time, which is
drb> not what I'd expect.

Maybe it's the limitation of using the UNIX domain sockets.  With
Cyrus 2.0.11, you could experiment with the TCP route:

/etc/cyrus.conf:

SERVICES { 
... 
lmtp cmd="lmtpd -a" listen="[127.0.0.1]:lmtp" prefork=1
... 
} 

/etc/services:

lmtp 2003/tcp

/etc/postfix/transport:

domain.namelmtp:[127.0.0.1]


-- 
Amos




Postfix and Cyrus single instance message store?

2001-02-12 Thread David R Bosso

This may need to go to the postfix list, but I'll try here first because of 
the recent related traffic...

OK, I'm trying to get Cyrus IMAP 2.0.11 single instance message store 
working with Postfix (latest snapshot).

I have postfix set up using lmtp via a transport table as per the postfix 
lmtp instructions, and I've got the following in my main.cf:

max_use = 300
lmtp_destination_recipient_limit = 1000
lmtp_destination_concurrency_limit = 1000

I've noticed that postconf doesn't know about these last two, which is 
troubling.

lmtp delivery works fine, but I'm not getting the single instance store, as 
verified by ls -i on the message files.

Here's what a delivery looks like in maillog:

Feb 12 11:20:14 paradigm postfix/smtpd[22910]: connect from 
ltsc.ucsb.edu[128.111.224.224]
Feb 12 11:20:14 paradigm postfix/smtpd[22910]: 5055E22E16: 
client=ltsc.ucsb.edu[128.111.224.224]
Feb 12 11:20:14 paradigm postfix/cleanup[22911]: 5055E22E16: 
message-id=<[EMAIL PROTECTED]>
Feb 12 11:20:14 paradigm postfix/qmgr[22854]: 5055E22E16: 
from=<[EMAIL PROTECTED]>, size=518362, nrcpt=3 (queue active)
Feb 12 11:20:14 paradigm postfix/smtpd[22910]: disconnect from 
ltsc.ucsb.edu[128.111.224.224]
Feb 12 11:20:14 paradigm postfix/lmtp[22913]: 5055E22E16: 
to=<[EMAIL PROTECTED]>, 
relay=/var/imap/socket/lmtp[/var/imap/socket/lmtp], delay=0, status=sent 
(250 2.1.5 Ok)
Feb 12 11:20:14 paradigm postfix/lmtp[22914]: 5055E22E16: 
to=<[EMAIL PROTECTED]>, 
relay=/var/imap/socket/lmtp[/var/imap/socket/lmtp], delay=0, status=sent 
(250 2.1.5 Ok)
Feb 12 11:20:14 paradigm postfix/lmtp[22913]: 5055E22E16: 
to=<[EMAIL PROTECTED]>, 
relay=/var/imap/socket/lmtp[/var/imap/socket/lmtp], delay=0, status=sent 
(250 2.1.5 Ok)

So it looks like it's using a new lmtp process each time, which is not what 
I'd expect.

Any suggestions?

Thanks.

-David