OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: why my source email in Postfix doesn't work

From: jim martin (postfix168yahoo.com)
Date: Tue Aug 03 2004 - 12:12:13 CDT


Hi.. I stop my sendmail.. and restart the postfix.. postfix start fine.. but I still cannot send mail as the source address that I define in main.cf "myorigin=abc.com ?? why is the method?

Aug 4 00:57:42 watcher sendmail[21068]: i73Gvgrd021068: from=root, size=52, cla
ss=0, nrcpts=1, msgid=<200408031657.i73Gvgrd021068watcher.teasin.com>, relay=ro
otlocalhost
Aug 4 00:57:42 watcher postfix/smtpd[21070]: connect from watcher.teasin.com[12
7.0.0.1]
Aug 4 00:57:42 watcher postfix/smtpd[21070]: E9DB6EA6D6: client=watcher.teasin.
com[127.0.0.1]
Aug 4 00:57:42 watcher postfix/cleanup[21073]: E9DB6EA6D6: message-id=<20040803
1657.i73Gvgrd021068watcher.teasin.com>
Aug 4 00:57:42 watcher postfix/qmgr[20695]: E9DB6EA6D6: from=<rootwatcher.teas
in.com>, size=539, nrcpt=1 (queue active)
Aug 4 00:57:42 watcher sendmail[21068]: i73Gvgrd021068: to=davidyahoo.com, ctl
addr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30052, relay
=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as E9DB6EA6D6)
Aug 4 00:57:43 watcher postfix/smtpd[21070]: disconnect from watcher.teasin.com
[127.0.0.1]
Aug 4 00:57:44 watcher postfix/smtp[21074]: E9DB6EA6D6: to=<davidyahoo.com>, r
elay=mx2.mail.yahoo.com[64.156.215.18], delay=2, status=sent (250 ok Tue Aug 3
09:57:44 2004: ql 0, qr 19091528)
Aug 4 00:57:44 watcher postfix/qmgr[20695]: E9DB6EA6D6: removed

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

 

> Aug 3 00:54:34 watcher postfix/master[23889]: fatal: bind INADDR_ANY
port 25: A
> ddress already in use

Postfix fails to listen on port 25 because it is taken by (drumroll...)

> Aug 3 00:54:58 watcher sendmail[23940]: i72Gswaw023940: from=root,
size=58, cla
> ss=0, nrcpts=1,
msgid=<200408021654.i72Gswaw023940watcher.company.com>, relay=ro
> otlocalhost

Sendmail.

hi.. the configuration and log are as follow, i hope it is what u refering to. I went to /var/log/maillog to get the log
 
[rootwatcher log]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
debug_peer_list = some.domain
html_directory = /usr/share/doc/postfix-2.1.0-documentation/html
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydomain = abc.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.0-documentation/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

 
log from /var/log/maillog.. sent a email to tomfujitsu.com although I specified mydomain=abc.com, I tot my source email address will be rootabc.com but it still appear as rootwatcher.company.com. watcher is my hostname and company.com is my company domain name
 
Aug 3 00:54:34 watcher postfix/postfix-script: starting the Postfix mail system
Aug 3 00:54:34 watcher postfix/master[23889]: fatal: bind INADDR_ANY port 25: A
ddress already in use
Aug 3 00:54:58 watcher sendmail[23940]: i72Gswaw023940: from=root, size=58, cla
ss=0, nrcpts=1, msgid=<200408021654.i72Gswaw023940watcher.company.com>, relay=ro
otlocalhost
Aug 3 00:54:58 watcher sendmail[23942]: i72GswkO023942: from=<rootwatcher.company.com>, size=350, class=0, nrcpts=1, msgid=<200408021654.i72Gswaw023940watcher
.company.com>, proto=ESMTP, daemon=MTA, relay=watcher.company.com [127.0.0.1]
Aug 3 00:54:58 watcher sendmail[23940]: i72Gswaw023940: to=tomfujitsu.co
m, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30058,
 relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i72GswkO023942 Message acc
epted for delivery)
Aug 3 00:55:13 watcher sendmail[23944]: i72GswkO023942: to=<tomfujitsu.c
om>, ctladdr=<rootwatcher.company.com> (0/0), delay=00:00:15, xdelay=00:00:15, m
ailer=esmtp, pri=30350, relay=mail18.messagelab.com. [200.150.127.240], dsn=2.0
.0, stat=Sent (ok 1091465714 qp 4449)

Wietse Venema <wietseporcupine.org> wrote:
jim martin:
> Hi.. Dear Friends,
>
> I am using postfix in Federo Core1 to send email using mail -s "subject" m
>-yemailyahoo.com < /file, now the source address of my email that I send is
>-always rootmylinux.mydomain.com. Mylinux is my PC name, and mydomain is my
>-company domain name. But I want to change it to mynameabc.com ? How do I
>- change it. I change it on my /etc/postfix/main.cf file
>
> mydomain =abc.com
> myorigin = $mydomain
>
> and I send it under a unix account called myname. I thought i will expect my source email address to be mynameabc.com but it is still rootmylinux.mydomain.com

If you want more help, provide logging and configuration information
as requested in

http://www.postfix.org/DEBUG_README.html#mail

Wietse

 

                
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!