OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
RE:

From: Gary V (mr88talenthotmail.com)
Date: Mon Jul 17 2006 - 20:39:53 CDT


===
>Here is the email I am sending:
>
>nc machine.domain.ip.addr 25 <<MYEOF
>helo its-johnny
>mail from: jimmcintyresecurity.com
>rcpt to: jim.mcintyrehosted-domain1.com
>data
>body stuff
>.
>quit
>EOF
>MYEOF
>
>===============================================================
>Here is the maillog:
>
>Jul 17 18:45:04 newserve postfix/pipe[20630]: D64BFB29BF: to=<jmcintyr>,
>orig_to=<jim.mcintyrehosted-domain1.com>, relay=spamfilter, delay=5,
>status=sent (dummy)
>Jul 17 18:45:04 newserve postfix/qmgr[20625]: D64BFB29BF: removed
>Jul 17 18:45:04 newserve postfix/qmgr[20625]: 077F1B29C6:
>from=<jimmcintyresecurity.com>, size=828, nrcpt=1 (queue active)
>Jul 17 18:45:04 newserve postfix/local[20638]: warning: dict_nis_init: NIS
>domain name not set - NIS lookups disabled
>Jul 17 18:45:04 newserve postfix/local[20638]: 077F1B29C6:
>to=<jmcintyrnewserve.machine-domain.com>, orig_to=<jmcintyr>,
>relay=local, delay=0, status=sent (delivered to mailbox)
>Jul 17 18:45:04 newserve postfix/qmgr[20625]: 077F1B29C6: removed
>
>
>================================================================
>Here is new postconf -n & postfix was restarted.
>
>root newserve /etc/postfix
># vi main.cf
>root newserve /etc/postfix
># service postfix stop; service postfix start
>Shutting down postfix: [ OK ]
>Starting postfix: [ OK ]
>root newserve /etc/postfix
># postconf -n
>append_at_myorigin = no
>append_dot_mydomain = no
>command_directory = /usr/sbin
>config_directory = /etc/postfix
>daemon_directory = /usr/libexec/postfix
>debug_peer_level = 2
>disable_vrfy_command = yes
>html_directory = no
>inet_interfaces = all
>local_recipient_maps = unix:passwd.byname $alias_maps
>mail_owner = postfix
>mailq_path = /usr/bin /mailq.postfix
>manpage_directory = /usr/share/man
>mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
>mydomain = machine-domain.com
>myhostname = newserve.machine-domain.com
>mynetworks = 192.168.0.0/24, 192.168.5.0/24, 127.0.0.0/8
>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_data_restrictions = permit
>smtpd_helo_required = yes
>smtpd_recipient_restrictions = reject_non_fqdn_sender,
>reject_non_fqdn_recipient, reject_unknown_sender_domain,
>reject_unknown_recipient_domain, permit_mynetworks,
>reject_invalid_hostname, reject_non_fqdn_hostname,
>reject_unauth_destination, check_sender_access
>hash:/etc/postfix/access,reject_rbl_client cbl.abuseat.org,
>reject_rbl_client list.dsbl.org, reject_rbl_client opm.blitzed.org,
> reject_rbl_client relays.ordb.org, reject_rbl_client
>bl.spamcop.net, reject_rbl_client sbl.spamhaus.org,
>reject_rhsbl_sender sbl.spamhaus.org, reject_rhsbl_client
>sbl.spamhaus.org, reject_rhsbl_client rhsbl.sorbs.net,
>reject_rbl_client vox.schpider.com, permit
>smtpd_sender_restrictions = reject_non_fqdn_sender,
>reject_unknown_sender_domain, reject_rhsbl_sender relays.ordb.org,
> reject_rhsbl_sender opm.blitzed.org
>unknown_local_recipient_reject_code = 550
>virtual_alias_domains = host-domain1.net, host-domain1.com,
>host-domain2.com, host-domain3.com, host-domain4.net, host-domain5.org
>virtual_alias_maps = hash:/etc/postfix/virtual
>
>
>jim mc....
>

In your virtual file, instead of:
jim.mcintyrehosted-domain1.com jmcintyr
use:
jim.mcintyrehosted-domain1.com jmcintyrlocalhost
or if for some reason you have to get even more explicit:
jim.mcintyrehosted-domain1.com jmcintyr[127.0.0.1]

You are showing a number of lines with spaces where they don't seem to
belong, for example:

>sendmail_path = /usr/sbin /sendmail.postfix

Do you really have spaces there?

And add:
alias_maps = hash:/etc/aliases

Gary V

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/