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