Re: lmtp over tcp configuation
Le 12/10/2012 20:52, Marcus Schopen a écrit : > Hi, > > I'm planing to split cyrus 2.2.13 from my incoming mail server running > sendmail 8.14.3. Basically I set up an openvpn tunnel between the boxes > and changed the CYRUSV2_MAILER_ARGS from FILE to TCP in the cyrusv2.m4 > macro on sendmail side and activated lmtp in the cyrus.conf on the other > side. First tests are running fine. Did I forget something? Any tuning > hints? > Seems fine to me, but you may want to allow more than 20 childrens for LMTP process. If you receive a lot of mails at once, your load will increase on the sendmail server because you don't have enough lmtp processes. Actually I use lmtpproxy since I have a murder setup, but with prefork=20 maxchild=0. Sendmail will reject connections anyway if the load or connection rate is too high. The openvpn seems overkill to me, as mail will often travel in clear anyway. Also, your smtp server won't know if the mailbox is really available, so you may have useless bounces (over quota...). You may want to check http://anfi.homeunix.net/sendmail/rtcyrus3.html. Cheers, -- Clement Hermann (nodens) - "L'air pur ? c'est pas en RL, ça ? c'est pas hors charte ?" Jean in L'Histoire des Pingouins, http://tnemeth.free.fr/fmbl/linuxsf/ Vous trouverez ma clef publique sur le serveur public pgp.mit.edu. Please find my public key on the public keyserver pgp.mit.edu. 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
lmtp over tcp configuation
Hi, I'm planing to split cyrus 2.2.13 from my incoming mail server running sendmail 8.14.3. Basically I set up an openvpn tunnel between the boxes and changed the CYRUSV2_MAILER_ARGS from FILE to TCP in the cyrusv2.m4 macro on sendmail side and activated lmtp in the cyrus.conf on the other side. First tests are running fine. Did I forget something? Any tuning hints? /etc/mail/sendmail.mc: [...] dnl # Default Mailer setup MAILER_DEFINITIONS define(`confLOCAL_MAILER', `cyrusv2')dnl MAILER(`local')dnl MAILER(`smtp')dnl MAILER(`cyrusv2')dnl /usr/share/sendmail/cf/mailer/cyrusv2.m4: [...] ifdef(`CYRUSV2_MAILER_ARGS',, `define(`CYRUSV2_MAILER_ARGS', `TCP [192.168.100.2] 2003')') [...] /etc/cyrus.conf: [...] lmtpcmd="lmtpd -a" listen="192.168.200.1:lmtp" prefork=0 maxchild=20 lmtpunixcmd="lmtpd" listen="/var/run/cyrus/socket/lmtp" prefork=0 maxchild=20 [...] System Ubuntu 10.04 LTS with sendmail8.14.3-9.1ubuntu1 cyrus-common-2.22.2.13-19squeeze3build0.10.04.1 Cheers Marcus 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: lmtp over tcp sockets, access denied and lmtp error: Message contains invalid header
Rodrigo Ventura wrote: After the DATA command you should enter the header fields in RCF??? format, followed by a empty line, followed by the actual data. For instance: thanks for pointing this out. I read in the rfc that lmtp use the same protocol als smtp (with a couple of exceptions) but I assumed that providing the bare minimum would work with lmtp as with smtp. mail from: [EMAIL PROTECTED] 250 2.1.0 [EMAIL PROTECTED] Sender ok rcpt to: [EMAIL PROTECTED] 250 2.1.5 [EMAIL PROTECTED] Recipient ok data 354 Enter mail, end with "." on a line by itself Subject: test hi there . 250 2.0.0 k6LE4oXP028311 Message accepted for delivery Cheers, Rodrigo 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: lmtp over tcp sockets, access denied and lmtp error: Message contains invalid header
Pascal Gienger wrote: You seem to have configured 2003 as your lmtpd port in your /etc/services of your cyrus host. Does lmtp use the same port? Stupid me. I did not have the lmtp line in my /etc/services on the mailrelay host. Thanks for the help! 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: lmtp over tcp sockets, access denied and lmtp error: Message contains invalid header
Rudy Gevaert <[EMAIL PROTECTED]> wrote: Now postfix complains: Jul 21 15:25:42 oliebol postfix/qmgr[7484]: 2A9BA7458: from=<[EMAIL PROTECTED]>, size=348, nrcpt=1 (queue active) Jul 21 15:25:42 oliebol postfix/lmtp[7490]: 2A9BA7458: to=<[EMAIL PROTECTED]>, relay=none, delay=4236, status=deferred (connect to mail2.ugent.be[157.193.71.18]: Connection refused) Postfix seems to connect to a wrong port number. What's in your master.cf and main.cf regarding that lmtp transport? I want to test my lmtp setup, but this fails too: No it did not :) oliebol:/etc/postfix# telnet mail2.ugent.be 2003 Trying 157.193.71.18... Connected to mail2.ugent.be. Escape character is '^]'. 220 mail2.ugent.be LMTP Cyrus v2.3.7 ready LHLO foo.edu [...] mail from:<[EMAIL PROTECTED]> 250 2.1.0 ok rcpt to:<[EMAIL PROTECTED]> 250 2.1.5 ok DATA 354 go ahead daf [...] . 554 5.6.0 Message contains invalid header That is normal. "daf" is not an allowed mail header. You seem to have configured 2003 as your lmtpd port in your /etc/services of your cyrus host. Does lmtp use the same port? Pascal Pascal 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: lmtp over tcp sockets, access denied and lmtp error: Message contains invalid header
On Friday 21 July 2006 14:32, Rudy Gevaert wrote: > mail from:<[EMAIL PROTECTED]> > 250 2.1.0 ok > rcpt to:<[EMAIL PROTECTED]> > 250 2.1.5 ok > DATA > 354 go ahead > daf > da > > > af > . > 554 5.6.0 Message contains invalid header > > How do I further test if my lmtp is working? (So I can gave a look at > the postfix problem) After the DATA command you should enter the header fields in RCF??? format, followed by a empty line, followed by the actual data. For instance: mail from: [EMAIL PROTECTED] 250 2.1.0 [EMAIL PROTECTED] Sender ok rcpt to: [EMAIL PROTECTED] 250 2.1.5 [EMAIL PROTECTED] Recipient ok data 354 Enter mail, end with "." on a line by itself Subject: test hi there . 250 2.0.0 k6LE4oXP028311 Message accepted for delivery Cheers, Rodrigo -- *** Rodrigo Martins de Matos Ventura <[EMAIL PROTECTED]> *** Web page: http://www.isr.ist.utl.pt/~yoda *** Teaching Assistant and PhD Student at ISR: ***Instituto de Sistemas e Robotica, Polo de Lisboa *** Instituto Superior Tecnico, Lisboa, PORTUGAL *** PGP fingerprint = 0119 AD13 9EEE 264A 3F10 31D3 89B3 C6C4 60C6 4585 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
lmtp over tcp sockets, access denied and lmtp error: Message contains invalid header
Hi, I'm trying to configure postfix to deliver to my cyrus lmtpd. I read the LMTP readme and configured my cyrus like this: lmtp cmd="lmtpd -a -C /mail/mail2/etc/imapd.conf" listen="host.name.tld:lmtp" prefork=10 hosts.deny says to deny all lmtp access, and hosts.allow accepts all lmtp access from one host (that is running the postfix mail server). Now postfix complains: Jul 21 15:25:42 oliebol postfix/qmgr[7484]: 2A9BA7458: from=<[EMAIL PROTECTED]>, size=348, nrcpt=1 (queue active) Jul 21 15:25:42 oliebol postfix/lmtp[7490]: 2A9BA7458: to=<[EMAIL PROTECTED]>, relay=none, delay=4236, status=deferred (connect to mail2.ugent.be[157.193.71.18]: Connection refused) I want to test my lmtp setup, but this fails too: oliebol:/etc/postfix# telnet mail2.ugent.be 2003 Trying 157.193.71.18... Connected to mail2.ugent.be. Escape character is '^]'. 220 mail2.ugent.be LMTP Cyrus v2.3.7 ready LHLO foo.edu 250-mail2.ugent.be 250-8BITMIME 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-SIZE 250-AUTH EXTERNAL 250 IGNOREQUOTA mail from:<[EMAIL PROTECTED]> 250 2.1.0 ok rcpt to:<[EMAIL PROTECTED]> 250 2.1.5 ok DATA 354 go ahead daf da af . 554 5.6.0 Message contains invalid header How do I further test if my lmtp is working? (So I can gave a look at the postfix problem) Thanks in advance, 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: lmtp over tcp
Andrew Morgan wrote: > > On Mon, 9 May 2005, Gerard Ceraso wrote: > >> I have this setup to run but I need to add an account for postfix to >> deliver to the Cyrus IMAP server. Is there a way to set Cyrus LMTP to >> accept the mail without authentication? > > > From /etc/cyrus.conf: > > lmtp cmd="/usr/local/cyrus/bin/lmtpd -a" listen="lmtp" > prefork=0 > > > Note the "-a" option (see 'man lmtpd'). You'll want to lock down > connections to lmtpd to only trusted mail relays though. > > From /etc/hosts.deny: > > lmtp: ALL EXCEPT LOCAL, your.mail.relay > > > Andy > Thanks thats exactly what I needed. I should of probably looked in the man pages for that one. I was planning on securing it by having a seperate private interface to transfer from the smtp server to imap server. This way it won't add to the imap traffic from clients. Gerard --- 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: lmtp over tcp
Gerard Ceraso wrote: > I have this setup to run but I need to add an account for postfix to > deliver to the Cyrus IMAP server. Is there a way to set Cyrus LMTP to > accept the mail without authentication? > --- > 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 maybe not the answer to your question, but another way of doing this. You could also set up postfix to authenticate to cyrus: main.cf mailbox_transport = lmtp:inet:127.0.0.1 lmtp_sasl_auth_enable = yes lmtp_sasl_password_maps = hash:/etc/postfix/lmtp_sasl_password lmtp_sasl_security_options = noanonymous /etc/postfix/lmtp_sasl_password: 127.0.0.1 [EMAIL PROTECTED]:password postmap lmtp_sasl_password John --- 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: lmtp over tcp
On Mon, 9 May 2005, Gerard Ceraso wrote: I have this setup to run but I need to add an account for postfix to deliver to the Cyrus IMAP server. Is there a way to set Cyrus LMTP to accept the mail without authentication? From /etc/cyrus.conf: lmtp cmd="/usr/local/cyrus/bin/lmtpd -a" listen="lmtp" prefork=0 Note the "-a" option (see 'man lmtpd'). You'll want to lock down connections to lmtpd to only trusted mail relays though. From /etc/hosts.deny: lmtp: ALL EXCEPT LOCAL, your.mail.relay Andy --- 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
lmtp over tcp
I have this setup to run but I need to add an account for postfix to deliver to the Cyrus IMAP server. Is there a way to set Cyrus LMTP to accept the mail without authentication? --- 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