All of lore.kernel.org
 help / color / mirror / Atom feed
* virtual domain support
@ 2007-05-18 13:51 Mehul N. Sanghvi
  2007-05-18 14:07 ` Christian Laursen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Mehul N. Sanghvi @ 2007-05-18 13:51 UTC (permalink / raw)
  To: mlmmj

'allo,

      I came across mlmmj while searching for something that would replace my 
current mailman installation.  I use Postfix as my MTA and have several virtual 
domains for which Postfix is the MTA.  With my current setup, I have mailing 
lists spread out over the virtual domains, and things work just fine.

      How does mlmmj work with virtual domains ?   Is there a document that 
someone can point me to that has guidelines for it ?



cheers,

      mehul

-- 
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtual domain support
  2007-05-18 13:51 virtual domain support Mehul N. Sanghvi
@ 2007-05-18 14:07 ` Christian Laursen
  2007-05-31  4:15 ` Mehul N. Sanghvi
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Christian Laursen @ 2007-05-18 14:07 UTC (permalink / raw)
  To: mlmmj

"Mehul N. Sanghvi" <mehul.sanghvi@gmail.com> writes:

>      How does mlmmj work with virtual domains ?   Is there a document
> that someone can point me to that has guidelines for it ?

It's actually quite simple. In your virtual file you make an entry for
each list like this:

listname@virtualdomain.example.com      mlmmj-virtualdomain.example.com-listname


And then, also for each list, make an entry in your aliases file like this:

mlmmj-virtualdomain.example.com-listname:     "/usr/local/bin/mlmmj-recieve -L /var/spool/mlmmj/virtualdomain.example.com/listname"


Of course you can choose your directory layout and alias names any way
you like, but this should give you the general idea.

-- 
Christian Laursen

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtual domain support
  2007-05-18 13:51 virtual domain support Mehul N. Sanghvi
  2007-05-18 14:07 ` Christian Laursen
@ 2007-05-31  4:15 ` Mehul N. Sanghvi
  2007-05-31 17:09 ` Morten K. Poulsen
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Mehul N. Sanghvi @ 2007-05-31  4:15 UTC (permalink / raw)
  To: mlmmj

Christian Laursen said the following on 5/18/2007 10:07 AM:
> "Mehul N. Sanghvi" <mehul.sanghvi@gmail.com> writes:
> 
>>      How does mlmmj work with virtual domains ?   Is there a document
>> that someone can point me to that has guidelines for it ?
> 
> It's actually quite simple. In your virtual file you make an entry for
> each list like this:
> 
> listname@virtualdomain.example.com      mlmmj-virtualdomain.example.com-listname
> 
> 
> And then, also for each list, make an entry in your aliases file like this:
> 
> mlmmj-virtualdomain.example.com-listname:     "/usr/local/bin/mlmmj-recieve -L /var/spool/mlmmj/virtualdomain.example.com/listname"
> 
> 
> Of course you can choose your directory layout and alias names any way
> you like, but this should give you the general idea.
> 

I have the following setup:

---- /etc/postfix/virtual ----

# mlmmj mailing lists
mlmmj-test@VHOST.TLD          mlmmj-test

---- /etc/postfix/virtual ----


---- /etc/aliases ----

mlmmj-test:  "|/usr/bin/mlmmj-recieve -L /var/spool/mlmmj/mlmmj-test/"

---- /etc/aliases ----


In trying to send a message to the list I get the following entries in the
/var/log/mail.log file:

May 30 23:54:51 REAL_HOST postfix/pickup[17476]: 1E1AD51BB7: uid\x1000 
from=<USER@VHOST.TLD>
May 30 23:54:51 REAL_HOST postfix/cleanup[17674]: 1E1AD51BB7: 
message-id=<20070531035451.GA17663@VHOST.TLD>
May 30 23:54:51 REAL_HOST postfix/qmgr[2870]: 1E1AD51BB7: 
from=<USER@VHOST.TLD>, sizeT6, nrcpt=1 (queue active)
May 30 23:54:51 REAL_HOST postfix/smtpd[17679]: connect from 
localhost.localdomain[127.0.0.1]
May 30 23:54:51 REAL_HOST postfix/smtpd[17679]: NOQUEUE: reject: RCPT from 
localhost.localdomain[127.0.0.1]: 504 5.5.2 <REAL_HOST>: Helo command rejected: 
need fully-qualified hostname; from=<mlmmj-test+bounces-help@VHOST.TLD> 
to=<USER@VHOST.TLD> proto=SMTP helo=<REAL_HOST>
May 30 23:54:51 REAL_HOST /usr/bin/mlmmj-send[17678]: mlmmj-send.c:241: Error 
in RCPT TO. Reply = [504 5.5.2 <REAL_HOST>: Helo command rejected: need 
fully-qualified hostname^M ]: Success
May 30 23:54:51 REAL_HOST postfix/smtpd[17679]: disconnect from 
localhost.localdomain[127.0.0.1]
May 30 23:54:51 REAL_HOST postfix/local[17676]: 1E1AD51BB7: 
to=<mlmmj-test@ISP-SIDE.DNS-NAME.DOMAIN.TLD>, orig_to=<mlmmj-test@VHOST.TLD>, 
relay=local, delay=0.34, delays=0.09/0.03/0/0.23, dsn=2.0.0, status=sent 
(delivered to command: /usr/bin/mlmmj-recieve -L /var/spool/mlmmj/mlmmj-test/)
May 30 23:54:51 REAL_HOST postfix/qmgr[2870]: 1E1AD51BB7: removed



Why is getting rejected ? I would like mlmmj to use the VHOST.TLD in the HELO 
rather then the REAL_HOST, is that possible ?  How so ?


cheers,

      mehul

-- 
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtual domain support
  2007-05-18 13:51 virtual domain support Mehul N. Sanghvi
  2007-05-18 14:07 ` Christian Laursen
  2007-05-31  4:15 ` Mehul N. Sanghvi
@ 2007-05-31 17:09 ` Morten K. Poulsen
  2007-06-08 10:46 ` Mehul N. Sanghvi
  2007-06-10 12:55 ` Morten K. Poulsen
  4 siblings, 0 replies; 6+ messages in thread
From: Morten K. Poulsen @ 2007-05-31 17:09 UTC (permalink / raw)
  To: mlmmj


Hi Mehul,

"Mehul N. Sanghvi" <mehul.sanghvi@gmail.com> wrote:
> In trying to send a message to the list I get the following
> entries in the /var/log/mail.log file:
[snip]
> May 30 23:54:51 REAL_HOST postfix/smtpd[17679]: NOQUEUE: reject: RCPT from
> localhost.localdomain[127.0.0.1]: 504 5.5.2 <REAL_HOST>: Helo command
> rejected:
> need fully-qualified hostname; from=<mlmmj-test+bounces-help@VHOST.TLD>
> to=<USER@VHOST.TLD> proto=SMTP helo=<REAL_HOST>
[snip]
> Why is getting rejected ?

Because your host does not know its own FQHN.

> I would like mlmmj to use the VHOST.TLD in the HELO rather then the
> REAL_HOST, is that possible ?

No, that is not possible.

Mlmmj asks the operating system - via gethostname() - what its hostname is.
Then it does a lookup - via gethostbyname() - to get the host's FQHN.

How does your /etc/hosts look?


Morten

-- 
Morten K. Poulsen <morten@afdelingp.dk>
http://www.afdelingp.dk/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtual domain support
  2007-05-18 13:51 virtual domain support Mehul N. Sanghvi
                   ` (2 preceding siblings ...)
  2007-05-31 17:09 ` Morten K. Poulsen
@ 2007-06-08 10:46 ` Mehul N. Sanghvi
  2007-06-10 12:55 ` Morten K. Poulsen
  4 siblings, 0 replies; 6+ messages in thread
From: Mehul N. Sanghvi @ 2007-06-08 10:46 UTC (permalink / raw)
  To: mlmmj

Morten K. Poulsen said the following on 5/31/2007 1:09 PM:
> Hi Mehul,
> 
> "Mehul N. Sanghvi" <mehul.sanghvi@gmail.com> wrote:
>> In trying to send a message to the list I get the following
>> entries in the /var/log/mail.log file:
> [snip]
>> May 30 23:54:51 REAL_HOST postfix/smtpd[17679]: NOQUEUE: reject: RCPT from
>> localhost.localdomain[127.0.0.1]: 504 5.5.2 <REAL_HOST>: Helo command
>> rejected:
>> need fully-qualified hostname; from=<mlmmj-test+bounces-help@VHOST.TLD>
>> to=<USER@VHOST.TLD> proto=SMTP helo=<REAL_HOST>
> [snip]
>> Why is getting rejected ?
> 
> Because your host does not know its own FQHN.
> 

I wonder how mailman does things then, because my mailing lists work fine in 
Mailman on the same system.  But Mailman is overkill for what I want to do

>> I would like mlmmj to use the VHOST.TLD in the HELO rather then the
>> REAL_HOST, is that possible ?
> 
> No, that is not possible.
> 
> Mlmmj asks the operating system - via gethostname() - what its hostname is.
> Then it does a lookup - via gethostbyname() - to get the host's FQHN.
> 
> How does your /etc/hosts look?

127.0.0.1   localhost  localhost.localdomain

192.168.x.x  REAL_HOST



cheers,

      mehul
-- 
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtual domain support
  2007-05-18 13:51 virtual domain support Mehul N. Sanghvi
                   ` (3 preceding siblings ...)
  2007-06-08 10:46 ` Mehul N. Sanghvi
@ 2007-06-10 12:55 ` Morten K. Poulsen
  4 siblings, 0 replies; 6+ messages in thread
From: Morten K. Poulsen @ 2007-06-10 12:55 UTC (permalink / raw)
  To: mlmmj


Hi Mehul,

"Mehul N. Sanghvi" <mehul.sanghvi@gmail.com> wrote:
> Morten K. Poulsen said the following on 5/31/2007 1:09 PM:
>>> Why is getting rejected ?
>>
>> Because your host does not know its own FQHN.
>
> I wonder how mailman does things then

What does MailMan use as the domain in the HELO line?

>> How does your /etc/hosts look?
>
> 127.0.0.1   localhost  localhost.localdomain
>
> 192.168.x.x  REAL_HOST

This makes it difficult to diagnose your problems. Is "REAL_HOST"
a short host name or is it fully qualified? I can't see that. If
you wish to "anonymize" your /etc/hosts, please pretend that the
host is in the .example or .example.com domain.

Morten

-- 
Morten K. Poulsen <morten@afdelingp.dk>
http://www.afdelingp.dk/


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-10 12:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18 13:51 virtual domain support Mehul N. Sanghvi
2007-05-18 14:07 ` Christian Laursen
2007-05-31  4:15 ` Mehul N. Sanghvi
2007-05-31 17:09 ` Morten K. Poulsen
2007-06-08 10:46 ` Mehul N. Sanghvi
2007-06-10 12:55 ` Morten K. Poulsen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.