ispCP - Board - Support
[HowTo] Mailman with ispCP, suexec - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Howtos (/forum-41.html)
+--- Thread: [HowTo] Mailman with ispCP, suexec (/thread-749.html)

Pages: 1 2 3


RE: Mailman with ispCP, suexec - thielmann - 08-16-2008 05:39 AM

FeG Wrote:I don't know why it is like this but these lines are wrong.. the should be like this:

Thanks for helping me out, that solved the problem.

FeG Wrote:But I'm not sure why mailman did it like this... How did you created the lists?

This is part of the HowTo:

Setup Mailman Wrote:Then modify the newly created MTA:

def _addvirtual(mlist, fp):
...
# Set up the mailman-loop address
loopaddr = Utils.get_site_email(mlist.host_name, extra='loop')
loopdest = '%s@localhost' % Utils.ParseEmail(loopaddr)[0] <-- add: '%s@localhost' %
...
# Now add all the standard alias entries
for k, v in makealiases(listname):
fqdnaddr = '%s@%s' % (k, hostname)
localaddr = '%s@localhost' % k <-- add this line
# Format the text file nicely
print >> fp, fqdnaddr, ((fieldsz - len(k)) * ' '), localaddr <-- change k to localaddr
# Finish the text file stanza
...

So I guess the HowTo is wrong regarding the localPostfix modifications. After changing "MTA='localPostfix'" back to "MTA='Postfix'" in /etc/mailman/mm_cfg.py, everything works as expected. Should have tried that earlier. Thanks again!


RE: Mailman with ispCP, suexec - FeG - 08-16-2008 08:11 PM

Hi,

I'm glad that I could help you.

thielmann Wrote:So I guess the HowTo is wrong regarding the localPostfix modifications.

It is not. Above those modification-advisory it's stated:
Quote:Create the localPostfix MTA

You only need this fix if $myorigin is not part of $mydestination in your Postfix configuration; if it is, just skip this point!

This part was added by someone else who had a specific problem with a setup like this, but since on my server $myorigin is part of $mydestination, I haven't applied this modification.

Greetings
FeG


RE: Mailman with ispCP, suexec - thielmann - 08-16-2008 09:59 PM

FeG Wrote:It is not. Above those modification-advisory it's stated:
Quote:Create the localPostfix MTA
You only need this fix if $myorigin is not part of $mydestination in your Postfix configuration; if it is, just skip this point!
This part was added by someone else who had a specific problem with a setup like this, but since on my server $myorigin is part of $mydestination, I haven't applied this modification.

I don't get it:

# postconf | grep mydestination
mydestination = $myhostname, $mydomain

So $myorigin is clearly not part of $mydestination and the fix is still wrong.


RE: Mailman with ispCP, suexec - FeG - 08-18-2008 05:46 PM

thielmann Wrote:# postconf | grep mydestination
mydestination = $myhostname, $mydomain

So $myorigin is clearly not part of $mydestination and the fix is still wrong.

I'm sorry, but again, it is not Wink

As you wrote above, you've set $myorigin like this:
Code:
myorigin   = $mydomain

So $myorigin equals $mydomain and so
Code:
mydestination       = $myhostname, $mydomain
implies, that $mydestination contains $myorigin.

Greetings
FeG


RE: [HowTo] Mailman with ispCP, suexec - Arcam - 03-01-2011 03:09 AM

Hello,

I wanted to know if the HowTo in the Documentation is still actual?

I tried to set up mailman on one of my server (debian squeeze, ispCP 1.0.7), and I keep on getting a "Recipient address rejected: User unknown in virtual mailbox table" error when trying to send a subscribe mail to my test list for one of my hosted domains.

I actually can't find the correct domain in /var/lib/mailman/data/virtual-mailman, even though I specified it in /etc/mailman/mm_cfg.py. I only see the main server domain, ie the one on which ispCP is running.

If you need any more info, let me know, but please if someone could give me a few pointers I'd be grateful! Smile


RE: [HowTo] Mailman with ispCP, suexec - FeG - 03-01-2011 03:44 AM

Hi Arcam,

Mailman is still running with this configuration here, so I suppose it's working with the HowTo...

You should go again through the HowTo, but the main point should be that the virtual domain has to be specified in the mailman config -- as you said, you checked that already. However if mailman does not create the list in the virtual-mailman file, then something is wrong with mailman's config, so you may also want to check the Mailman documentation.

At the moment I've no clue what other thing may causes problems here...

Regards,
FeG


RE: [HowTo] Mailman with ispCP, suexec - Arcam - 03-01-2011 06:07 PM

Hello, FeG.

Thanks for the reply.

I already checked the mailman doc, but must have missed something.
I'll check it again, and post here.


RE: [HowTo] Mailman with ispCP, suexec - Arcam - 03-01-2011 08:52 PM

Hello again,

I checked and rechecked everything, I even tried to reconfigure mailman and postfix, but to no avail: the virtual domain still doesn't show in the virtual-mailman file.

Anyways, since I'm making my own interface for subscription/unsubscription to the lists (it will mainly be used for newsletters), I'll juste fill the correct entries in the virtual-mailman file and regenerate the mailman virtual-mailman.db, for the time being.