Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postfix - wrong recipient address
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
iliah
n00b
n00b


Joined: 01 Aug 2004
Posts: 42
Location: Russia Moscow

PostPosted: Sun Sep 26, 2004 2:59 pm    Post subject: postfix - wrong recipient address Reply with quote

hi
I've got such problem after installing postfix -
after sending letter by php function mail() with the recipient email as first argument
I can't receive it

here is the log:

####################################################
Sep 26 16:52:31 arisa syslog-ng[8339]: Objects alive: 40, garbage collected: 65
Sep 26 16:52:34 arisa postfix/postfix-script: starting the Postfix mail system
Sep 26 16:52:34 arisa postfix/master[9637]: daemon started -- version 2.1.3
Sep 26 16:52:41 arisa postfix/pickup[9638]: 16B32F6B29: uid=81 from=<apache>
Sep 26 16:52:41 arisa postfix/cleanup[9643]: 16B32F6B29: message-id=<20040926165241.16B32F6B29@arisa.hostname.ru>
Sep 26 16:52:41 arisa postfix/cleanup[9643]: 16B32F6B29: to=<unknown>, relay=none, delay=0, status=bounced (No recipients specified)
Sep 26 16:52:41 arisa postfix/cleanup[9647]: 1E0D1F6BCE: message-id=<20040926165241.1E0D1F6BCE@arisa.hostname.ru>
Sep 26 16:52:41 arisa postfix/qmgr[9639]: 1E0D1F6BCE: from=<>, size=2001, nrcpt=1 (queue active)
Sep 26 16:52:41 arisa postfix/local[9648]: 1E0D1F6BCE: to=<apache@arisa.hostname.ru>, relay=local, delay=0, status=sent (delivered to mailbox)
Sep 26 16:52:41 arisa postfix/qmgr[9639]: 1E0D1F6BCE: removed

####################################################

as it can be seen - wrong recipient address
why postfix override it with the apache@machine_name.hostname.ru ?

here is `cat /etc/mail/aliases`:

####################################################
# Basic system aliases -- these MUST be present.
MAILER-DAEMON: postmaster
postmaster: root

# General redirections for pseudo accounts.
adm: root
bin: root
daemon: root
exim: root
lp: root
mail: root
named: root
nobody: root
postfix: root

# Well-known aliases -- these should be filled in!
root: my_email@my_postserver.ru
# operator:

# Standard RFC2142 aliases
abuse: postmaster
ftp: root
hostmaster: root
news: usenet
noc: root
security: root
usenet: root
uucp: root
webmaster: root
www: webmaster
####################################################

thanx for any suggestions !
Back to top
View user's profile Send private message
iliah
n00b
n00b


Joined: 01 Aug 2004
Posts: 42
Location: Russia Moscow

PostPosted: Sun Sep 26, 2004 3:02 pm    Post subject: Reply with quote

addition:

doing `telnet localhost 25` it's ok - I receive mail
but without `To:` header - undisclosed-recipients:;

I 've added this to /etc/mail/aliases
"apache: my_email"

and finally got this:

-------------------------------------------------------------------------------------------
Subject: Undelivered Mail Returned to Sender
From: Mail Delivery System <MAILER-DAEMON@arisa.hostname.ru>
To: apache@arisa.hostname.ru

This is the Postfix program at host arisa.hostname.ru.

I'm sorry to have to inform you that your message could not be
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

<unknown>: No recipients specified

Reporting-MTA: dns; arisa.hostname.ru
X-Postfix-Queue-ID: 93C01F6BC6
X-Postfix-Sender: rfc822; apache@arisa.hostname.ru
Arrival-Date: Sun, 26 Sep 2004 18:03:09 +0000 (GMT)

Final-Recipient: rfc822; unknown
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; No recipients specified

Subject:
test from gentoo
From:
apache@arisa.hostname.ru (apache)
Date:
Sun, 26 Sep 2004 18:03:09 +0000 (GMT)
To:
my_email
Received:
by arisa.hostname.ru (Postfix, from userid 81) id 93C01F6BC6; Sun, 26 Sep 2004 18:03:09 +0000 (GMT)
Message-ID:
<20040926180309.93C01F6BC6@arisa.hostname.ru>

message
-------------------------------------------------------------------------------------------

why if I tell PHP send letter to someone@server.ru it doesn't pass address to postfix?

what I miss in /etc/postfix/main.cf?

#################
defer_transport = smtp
relayhost = hostname.ru
mail_owner = postfix
myhostname = arisa.hostname.ru
mydomain = hostname.ru
#################
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Mon Oct 11, 2004 11:59 am    Post subject: Reply with quote

i don't have one fq email address in my aliases file. simply set
Code:
# Well-known aliases -- these should be filled in!
root: my_email@my_postserver.ru

to
Code:
# Well-known aliases -- these should be filled in!
root: your_username

without any domain name spec
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum