LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-06-2005, 02:56 PM   #1
trees
Member
 
Registered: Dec 2003
Location: Earth... I think!?
Distribution: Debian
Posts: 32

Rep: Reputation: 15
Postfix, Mailman + PHP - strange behaviour


Greetings,

### Description ###
I'm trying to set up Mailman with Postfix with a simple join/leave form that could be easily integratable into a webpage template.

Mailman accepts email requests like mailinglist-join@server.com, and sends a confirmation to that email.

I set up a php script to automate the process a little bit, so a user fills out the form and the script sends the email to mailinglist-join@server.com from the filled out email address. Mailman will send the confirmation email to that address.
PHP Code:
$mailto "mailinglist-join@server.com";
mail($mailto$mailsubject$message"From: $email\nX-Mailer: PHP/".$phpversion"-f $email"); 
### Problem ###
The script works from the local computer, but when I try to send run it from our testing server, the email bounces with this error:
Code:
This is the Postfix program at host kfaserver1.net.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

			The Postfix program

<mailinglist-join@kfaserver1.net>: unknown user: "mailinglist-join"


Reporting-MTA: dns; kfaserver1.net
X-Postfix-Queue-ID: 5138237EE6
X-Postfix-Sender: rfc822; someone@server.com
Arrival-Date: Thu,  6 Oct 2005 09:29:52 -0700 (PDT)

Final-Recipient: rfc822; mailinglist-join@kfaserver1.net
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; unknown user: "mailinglist-join"
I tried this on another machine, and the email just got lost.

Curious thing is that if I try to send the join-request email from a normal email client, it works.

Any ideas?

Maybe Postfix somehow can't resolve the mail server of the machine that runs the php script and automatically assumes that it's spam?

Thanks.

postconf -n
Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
default_process_limit = 150
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = localhost
myhostname = localhost
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
owner_request_special = no
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_limit = 1000
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual,                      hash:/var/lib/mailman/data/virtual-mailman
virtual_gid_maps = static:5000
virtual_mailbox_base = /pub/mail
virtual_mailbox_domains = kfaserver1.net
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange behaviour Anmol SUSE / openSUSE 2 10-27-2005 11:05 PM
Problem with Mailman & Postfix Sfin Linux - Software 0 10-07-2005 10:12 AM
Mailman (MTA = Postfix) problems (...group...) (Gentoo) jeroenvrp Linux - Software 0 07-19-2004 11:12 AM
Mailman + postfix virtual domains paulten Linux - Networking 0 01-12-2004 06:39 AM
Strange Behaviour mikeyt_3333 Linux - General 4 08-06-2001 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration