LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2004, 09:51 AM   #1
kawdk
Member
 
Registered: Apr 2004
Location: Denmark
Distribution: Debian
Posts: 34

Rep: Reputation: 15
Postfix:


When i try to send a mail using php, i cant, i am using POSTFIX and my logs shows me this:

Aug 3 16:20:52 localhost postfix/pickup[993]: 9D9F56C27F: uid=33 from=<www-data>
Aug 3 16:20:52 localhost postfix/cleanup[1158]: 9D9F56C27F: message-id=<20040803142052.9D9F56C27F@localhost>
Aug 3 16:20:52 localhost postfix/qmgr[994]: 9D9F56C27F: from=<www-data@localhost>, size=327, nrcpt=1 (queue active)
Aug 3 16:20:53 localhost postfix/smtp[1160]: 9D9F56C27F: to=<kawsper@gmail.com>, relay=smtp.mail.dk[195.41.46.251], delay=1, status=bounced (host smtp.mail.$
Aug 3 16:20:54 localhost postfix/cleanup[1158]: E2A7D6C285: message-id=<20040803142054.E2A7D6C285@localhost>
Aug 3 16:20:54 localhost postfix/qmgr[994]: E2A7D6C285: from=<>, size=2162, nrcpt=1 (queue active)
Aug 3 16:20:54 localhost postfix/qmgr[994]: 9D9F56C27F: removed
Aug 3 16:20:54 localhost postfix/local[1163]: E2A7D6C285: to=<www-data@localhost>, relay=local, delay=0, status=sent (delivered to command: procmail -a "$EX$
Aug 3 16:20:54 localhost postfix/qmgr[994]: E2A7D6C285: removed

My main.cf looks like this:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = julie, localhost, localhost.localdomain, localhost
relayhost = smtp.mail.dk
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
 
Old 08-03-2004, 11:07 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
It looks like your relayhost is bouncing it, but the reason has been cut off from the logs. Are you sure you pasted the entire output correctly? Maybe it's your terminal that is truncating the output. You need to look at this line:
Quote:
Aug 3 16:20:53 localhost postfix/smtp[1160]: 9D9F56C27F: to=<kawsper@gmail.com>, relay=smtp.mail.dk[195.41.46.251], delay=1, status=bounced (host smtp.mail.$
See how it ends in a dollar sign ($)? I think that is your terminal truncating the output. You need to get the full length of that line to see what the return code was.
 
Old 08-03-2004, 11:30 AM   #3
kawdk
Member
 
Registered: Apr 2004
Location: Denmark
Distribution: Debian
Posts: 34

Original Poster
Rep: Reputation: 15
getting a "smtp.mail.dk[195.41.46.251] said: 504 <www-data@localhost>: Sender address rejected: need fully-qualified address (in reply to RCPT TO command))".
Sorry for the bad output.

A friend of mine looked on it, he told me that i cant have i mail server because i have no domain to my server. But it also seems like it are sending mails from a not valid email.
 
Old 08-03-2004, 02:54 PM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Set the myhostname variable to something more reasonable than 'localhost'. If you really have no domain name to put there, try putting your IP address there, maybe it will work.
R.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 6 09-23-2019 10:09 PM
can't start postfix ./postfix status error jules_fraser Linux - Software 3 12-06-2003 06:33 PM
Postfix Help jglazner Linux - Software 0 10-16-2003 03:58 PM
POSTFIX Help Micro Linux - Software 2 05-06-2003 10:29 AM
move postfix mails from server to another postfix server onetwo Linux - Software 2 03-18-2003 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration