Skip to contentSkip to conversation

virtual domain support

DISCUSSION Mehul N. Sanghvi 3 participants 6 messages May 18, 2007 – Jun 10, 2007

lore
Share & tools
lore
#0 lore raw

'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

Signature · 2 lines
Mehul N. Sanghvi
email: [email protected]
#1 lore raw
Quoted 2 lines · Mehul N. Sanghvi

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:

[email protected] 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.

Signature · 1 line
Christian Laursen
#2 lore raw
In reply to Mehul N. Sanghvi

Christian Laursen said the following on 5/18/2007 10:07 AM:

Quoted 11 lines
Quoted 2 lines · Mehul N. Sanghvi

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:

[email protected] mlmmj-virtualdomain.example.com-listname

Quoted 8 lines

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
[email protected]          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: uid00 
from=<[email protected]>
May 30 23:54:51 REAL_HOST postfix/cleanup[17674]: 1E1AD51BB7: 
message-id=<[email protected]>
May 30 23:54:51 REAL_HOST postfix/qmgr[2870]: 1E1AD51BB7: 
from=<[email protected]>, 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=<[email protected]> 
to=<[email protected]> 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=<[email protected]>, orig_to=<[email protected]>, 
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

Signature · 2 lines
Mehul N. Sanghvi
email: [email protected]
#3 lore raw
In reply to Mehul N. Sanghvi

Hi Mehul,

Quoted 2 lines · Mehul N. Sanghvi

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

[snip]

Quoted 5 lines
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=<[email protected]> to=<[email protected]> proto=SMTP helo=<REAL_HOST>

[snip]

Quoted 1 line

Why is getting rejected ?

Because your host does not know its own FQHN.

Quoted 2 lines

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

Signature · 2 lines
Morten K. Poulsen <[email protected]>
http://www.afdelingp.dk/
#4 lore raw
In reply to Mehul N. Sanghvi

Morten K. Poulsen said the following on 5/31/2007 1:09 PM:

Quoted 11 lines

Hi Mehul,

Quoted 2 lines · Mehul N. Sanghvi

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

[snip]

Quoted 5 lines
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=<[email protected]> to=<[email protected]> proto=SMTP helo=<REAL_HOST>

Quoted 5 lines

[snip]

Quoted 1 line

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

Quoted 9 lines
Quoted 2 lines

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

Signature · 2 lines
Mehul N. Sanghvi
email: [email protected]
#5 lore raw
In reply to Mehul N. Sanghvi

Hi Mehul,

Quoted 6 lines · Mehul N. Sanghvi

Morten K. Poulsen said the following on 5/31/2007 1:09 PM:

Quoted 3 lines
Quoted 1 line

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?

Quoted 5 lines
Quoted 1 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

Signature · 2 lines
Morten K. Poulsen <[email protected]>
http://www.afdelingp.dk/