FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Configuring Postfix to post to FUDforum
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Configuring Postfix to post to FUDforum [message #36112] Mon, 05 March 2007 10:22 Go to next message
ramsey is currently offline  ramsey   United States
Messages: 11
Registered: March 2007
Location: Atlanta, GA
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
I've searched these forums and couldn't find an answer for this, so I'm posting a new topic. If it's already been answered, then I'm sorry; please direct me to the answer.

I'd like to know how to configure Postfix to post incoming mailing list messages to FUDforum. FUDforum gives an example of how to do this with Procmail, but I don't know how to do it with Postfix, so if anyone can show me an example of how to do it, I'd greatly appreciate it.


Ben Ramsey
Re: Configuring Postfix to post to FUDforum [message #36113 is a reply to message #36112] Mon, 05 March 2007 13:40 Go to previous messageGo to next message
dardhal is currently offline  dardhal   Spain
Messages: 9
Registered: November 2006
Location: Spain
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
ramsey wrote on Mon, 05 March 2007 16:22

I'd like to know how to configure Postfix to post incoming mailing list messages to FUDforum. FUDforum gives an example of how to do this with Procmail, but I don't know how to do it with Postfix, so if anyone can show me an example of how to do it, I'd greatly appreciate it.


One quick and dirty way to accomplish this is to create another email account, and subscribe it to the mailing list. Then, set up an alias under /etc/aliases or whatever, and make it run some script (the one you refer to, for example). It should work, or at least it should be a step in the right direction.
Re: Configuring Postfix to post to FUDforum [message #36115 is a reply to message #36113] Mon, 05 March 2007 15:03 Go to previous messageGo to next message
ramsey is currently offline  ramsey   United States
Messages: 11
Registered: March 2007
Location: Atlanta, GA
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
I've set up my box so that it's only for running mailing lists and doesn't host mail for any accounts. So, creating another e-mail address for this purpose may not be possible on this box. That said, I'm also not a pro at working with Postfix. I'm very new at it, so I'm not quite sure how to do what you're suggesting.

Ben Ramsey
Re: Configuring Postfix to post to FUDforum [message #36116 is a reply to message #36115] Mon, 05 March 2007 15:53 Go to previous messageGo to next message
dardhal is currently offline  dardhal   Spain
Messages: 9
Registered: November 2006
Location: Spain
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
ramsey wrote on Mon, 05 March 2007 21:03

I've set up my box so that it's only for running mailing lists and doesn't host mail for any accounts. So, creating another e-mail address for this purpose may not be possible on this box. That said, I'm also not a pro at working with Postfix. I'm very new at it, so I'm not quite sure how to do what you're suggesting.


I don't remember for sure, but I think an alias defined in /etc/aliases and linked to a script should work, whenever the box accepts mail for that email address domain. Just try, should be completely non-intrusive.
Re: Configuring Postfix to post to FUDforum [message #36117 is a reply to message #36116] Mon, 05 March 2007 15:56 Go to previous messageGo to next message
ramsey is currently offline  ramsey   United States
Messages: 11
Registered: March 2007
Location: Atlanta, GA
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
I just found this thread, which gives some examples for setting up the alias with postfix, so I'll try that. When I get it working, I'll post my example here:

http://fudforum.org/forum/index.php?t=msg&goto=27900&


Ben Ramsey
Re: Configuring Postfix to post to FUDforum [message #36118 is a reply to message #36117] Mon, 05 March 2007 16:37 Go to previous messageGo to next message
ramsey is currently offline  ramsey   United States
Messages: 11
Registered: March 2007
Location: Atlanta, GA
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Got it working, and in a nutshell, here's how:

In /etc/aliases, I added a new alias:
list-bot: "|/usr/local/bin/php /full/path/to/FUDforum/scripts/maillist.php 1"

Then I ran the "newaliases" command as root (sudo newaliases) and reloaded postfix as root (sudo /etc/init.d/postfix reload).

Next, I set permissions on maillist.php to 777 (chmod 777 maillist.php) so that postfix could execute it (755 may also work just fine, but I haven't tested it).

Finally, I used the Mailman admin interface to subscribe list-bot(at)myhost(dot)com to the mailing list. Now, every message sent to the mailing list goes to list-bot and then gets added to the forum.

The beauty in this approach is that, with an announcements mailing list, everything needs to be approved. If you simply add a rule to pipe all messages to your mailing list address to the forum, then it skips the mailing list approval process, but since I'm piping all messages sent to a subscriber of the list to the forum, then only those messages approved to be sent to the mailing list get posted to the forum.


Ben Ramsey
Message by mountainfreak is ignored  [reveal message]  [reveal all messages by mountainfreak]  [stop ignoring this user] Go to previous messageGo to next message
Message by mountainfreak is ignored  [reveal message]  [reveal all messages by mountainfreak]  [stop ignoring this user] Go to previous messageGo to next message
Re: Configuring Postfix to post to FUDforum [message #159406 is a reply to message #159402] Sun, 31 May 2009 06:09 Go to previous messageGo to next message
Peter Vendike is currently offline  Peter Vendike   Denmark
Messages: 65
Registered: February 2009
Location: Denmark
Karma: 0
Member
Translator
add to buddy list
ignore all messages by this user
You should ask on a postfix list, study the how to's for postfix.

Try to get postfix to work the simplest way first, and go on from there.

[Updated on: Sun, 31 May 2009 06:10]

Report message to a moderator

Message by mountainfreak is ignored  [reveal message]  [reveal all messages by mountainfreak]  [stop ignoring this user] Go to previous messageGo to next message
Re: Configuring Postfix to post to FUDforum [message #159415 is a reply to message #36112] Mon, 01 June 2009 02:25 Go to previous messageGo to next message
Peter Vendike is currently offline  Peter Vendike   Denmark
Messages: 65
Registered: February 2009
Location: Denmark
Karma: 0
Member
Translator
add to buddy list
ignore all messages by this user
Postfix has its own mailman, are you using the classic mailman program together with postfix? that should not be neccessary
Message by mountainfreak is ignored  [reveal message]  [reveal all messages by mountainfreak]  [stop ignoring this user] Go to previous messageGo to next message
Re: Configuring Postfix to post to FUDforum [message #159420 is a reply to message #159418] Tue, 02 June 2009 02:32 Go to previous messageGo to next message
Peter Vendike is currently offline  Peter Vendike   Denmark
Messages: 65
Registered: February 2009
Location: Denmark
Karma: 0
Member
Translator
add to buddy list
ignore all messages by this user
yes you are rigth about they are seperat.

I don't use mailman on my own system, but connect to others.

My postfix calls maillist.php through alias, and it works.

Strange that mailman worked for you before, cant you reverse everything?

[Updated on: Tue, 02 June 2009 02:35]

Report message to a moderator

Message by mountainfreak is ignored  [reveal message]  [reveal all messages by mountainfreak]  [stop ignoring this user] Go to previous messageGo to next message
Re: Configuring Postfix to post to FUDforum [message #159463 is a reply to message #159459] Thu, 04 June 2009 06:12 Go to previous message
Peter Vendike is currently offline  Peter Vendike   Denmark
Messages: 65
Registered: February 2009
Location: Denmark
Karma: 0
Member
Translator
add to buddy list
ignore all messages by this user
So you got it to work.

Just I don't think its good to run any mail programs as root, its not neccessary for me, but my system is a standalone PC, running Opensuse.

The user 'list-bot' should be a alias user on your system, so he is kind of virtual. But 'real' virtual users are defined different. If your domain name is domain.net, his address is list-bot(at)domain(dot)net, and you subscribe him to the mailman list.

So mailman sends messages from the list to him then i think for procmail it should be

* ^TO_.*list-bot(at)domain(dot)net
|/usr/bin/php /home/some-user/forum/scripts/maillist.php 1

But you could also use

* ^Reply_To_.*list-name(at)another-domain(dot)net
|/usr/bin/php /home/some-user/forum/scripts/maillist.php 1 (x for different forums)

(not shure of that, did not try it)

the first solution needs i different user for every list subscribed to (my own solution), with the second, you could just subscribe the same (alias) user to different lists, and senders from other addresses are rejected.



[Updated on: Thu, 04 June 2009 06:36]

Report message to a moderator

Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: FudForum theme and template edition - probleme to have stable css
Next Topic: Impossible to vote poll
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Sep 23 19:48:03 EDT 2023

Total time taken to generate the page: 0.00990 seconds