Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th June 2010, 19:24
MiniMe MiniMe is offline
Senior Member
 
Join Date: Oct 2008
Posts: 104
Thanks: 4
Thanked 5 Times in 4 Posts
Default Problem with receiving "internal" emai

I have installed Postfix, clamav and so on on Debian Lenny 5.0

Now the problem i am having is the following :

I am running a store application on my apache2 webserver which should be able to send email to customers and myself for order purposes.

The emailaddress which is used by the application to send email with is : store@domain.com , email is beeing sent out via SMTP ( mail.domain.com ) which is the local smtp mailserver on that server.

But the error i recieve in the mail logs is the following :

Jun 27 19:35:45 Aphrodite-Artemis postfix/smtpd[2770]: connect from mail.domain.com[x.x.x.x]
Jun 27 19:35:45 Aphrodite-Artemis postfix/smtpd[2770]: NOQUEUE: reject: RCPT from mail.domain.com[x.x.x.x]: 554 5.7.1 <jules@domain2.com>: Relay access denied; from=<store@domain.com> to=<jules@domain2.com> proto=SMTP helo=<www.domain.com>
Jun 27 19:35:45 Aphrodite-Artemis postfix/smtpd[2770]: warning: non-SMTP command from mail.domain.com[x.x.x.x]: To: jules@domain2.com

x.x.x.x equals to the mailserver's IP
domain.com equals my real domain name
domain2.com is an emailaddress which is perfectly reachable

Any idea wut the problem could be and how to resolve ?
__________________
Debian Squeeze 6.0.3 - 16GB RAM - Intel i7-2600 Quad Core HT @ 3.4Ghz - RAID 1 2800 GB
Evil-Hannie's Dedicated Server - Aphrodite-Artemis
http://www.evil-hannie.eu
Reply With Quote
Sponsored Links
  #2  
Old 1st July 2010, 09:49
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

You're trying to send an email to a domain that is not hosted on the local server, hence it needs to relay that mail to the server that DOES host domain2.com .. though as default you need to authenticate yourself before you're able to send relay mails and i don't see you auth before you send that mail.

So either use an internal mail function for your application f.e. mail() if you use php, OR authenticate before you send.

OORRRRR if you really really trust is, you could add domain2.com to your relay_domains setting in postfix, but that's not really what i would do, since it's an semi open relay for that domain then.
Reply With Quote
  #3  
Old 1st July 2010, 20:51
MiniMe MiniMe is offline
Senior Member
 
Join Date: Oct 2008
Posts: 104
Thanks: 4
Thanked 5 Times in 4 Posts
Default

i did try the mail function in PHP, but somehow it didnt / doesnt work.

Regarding the relaying : how come i am able to send normal email then via outlook from the mail.domain.com system to another domain ?

Is it because i auth then or what ?
__________________
Debian Squeeze 6.0.3 - 16GB RAM - Intel i7-2600 Quad Core HT @ 3.4Ghz - RAID 1 2800 GB
Evil-Hannie's Dedicated Server - Aphrodite-Artemis
http://www.evil-hannie.eu
Reply With Quote
  #4  
Old 2nd July 2010, 10:06
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Quote:
Originally Posted by MiniMe View Post
i did try the mail function in PHP, but somehow it didnt / doesnt work.
vaguely explaining something like this, tells me you haven't really looked into this ;-)

Quote:
Originally Posted by MiniMe View Post
Regarding the relaying : how come i am able to send normal email then via outlook from the mail.domain.com system to another domain ?
Is it because i auth then or what ?
That is because you're authenticated then.
Reply With Quote
  #5  
Old 2nd July 2010, 17:49
MiniMe MiniMe is offline
Senior Member
 
Join Date: Oct 2008
Posts: 104
Thanks: 4
Thanked 5 Times in 4 Posts
Default

Quote:
Originally Posted by Mark_NL View Post
vaguely explaining something like this, tells me you haven't really looked into this ;-)



That is because you're authenticated then.
well , not really, i did active the PHP mail, but that just doesnt seem to do shit ( does not even send mail ) so does not work.

I will check the authenticating stuff regarding SMTP ... as far as i thought, i never do any SMTP authentication when getting email / sending email via outlook ( same domain )
__________________
Debian Squeeze 6.0.3 - 16GB RAM - Intel i7-2600 Quad Core HT @ 3.4Ghz - RAID 1 2800 GB
Evil-Hannie's Dedicated Server - Aphrodite-Artemis
http://www.evil-hannie.eu
Reply With Quote
  #6  
Old 3rd July 2010, 13:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

Quote:
Originally Posted by MiniMe View Post
well , not really, i did active the PHP mail, but that just doesnt seem to do shit ( does not even send mail ) so does not work.
What's in the mail log when you try to send a mail with PHP?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 18:58
upgraded Ubuntu 8.10 to Ubuntu 9.04, mail receiving problem. jtt General 1 10th May 2009 22:51
Postfix, ISPConfig 3, Problem receiving emails BorderAmigos General 6 27th April 2009 22:42
postfix mysql on fedora core5 igongora Installation/Configuration 7 17th April 2007 05:40
Problem receiving mail on one domain KenKnight Server Operation 2 15th May 2006 17:16


All times are GMT +2. The time now is 08:11.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.