OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Config Issue: Wrong origin and cannot send to my server

From: Alan McLean (alan.mcleangmail.com)
Date: Wed Nov 23 2005 - 03:06:29 CST


I have set up CentOS 4 with Postfix. I am having a lot of problems
getting the config setup properly. Here is my current situation:

-When I send mail, it appears to come from
<username><hostname>.<domain>
However, when I use PHP and the mail() command, it sends from the
proper address.

so for example, my mail seems to come from
supportthisboxsname.ilovepostfixsupport.com. It should come from,
supportilovepostfixsupport.com

Ideas?

Here is my postconf -n output:

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_privs = nobody
html_directory = no
inet_interfaces = localhost
mail_owner = postfix
mailbox_size_limit = 104857600
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 20971520
mydestination = $myhostname, $mydomain, localhost
mydomain = autismoutreach.ca
myhostname = popard.autismoutreach.ca
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.5/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550

I cannot seem to receive email either...
arg!!

--Alan