LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-19-2005, 06:22 AM   #1
rincewind
Member
 
Registered: Mar 2004
Posts: 32

Rep: Reputation: 15
qmail + relay ... help..


Hello everybody.

Im running this gentoo server that I would like to run Qmail on..

My internet provider tell me to send all of my outgoing SMTP traffic through a relay with the DNS a certain DNS name (mailrel.myisprov.com)..

And how do I try if this works?

I've installed qmail and checked that the process is running..
Can anyone help me?=)

Regardz, and most thankfull for the help...

-- Rincewind..
 
Old 01-24-2005, 07:32 AM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Did you get this resolved?

This is the answer...

echo ':mailrel.myisprov.com' > /var/qmail/control/smtproutes

Then try sending mail. This instructs qmail to send all outgoing mail to the mailserver found at mailrel.myisprov.com.
 
Old 01-24-2005, 09:49 AM   #3
rincewind
Member
 
Registered: Mar 2004
Posts: 32

Original Poster
Rep: Reputation: 15
Yay!!! Thanks..!=)

Now it relays nicely.. except one thing:
If I perform the following PHP code:
Code:
$message="TEST 

Please 
work..."; 

// Basicly sends this to my@emailadress.com from another@emailadress.com...
$var=mail("my@emailadress.com", "TEST", $message, 
     "From: another@emailadress.com\r\n" . 
     "Reply-To: another@emailadress.com\r\n" . 
     "X-Mailer: PHP/" . phpversion()); 


if ($var) 
{ 
   echo "Sent!"; 
} 
else 
{ 
   echo "ERROR"; 
}
It sends a mail to my@emailadress.com
yet from the email adress another@homenetwork.tux...
The trailing homenetwork.tux is in my /etc/hosts.... But I thinkt this one is a qmail configuration error...
The email server does not allow homenetwork.tux..
... Does anyone now whats wrong?

Regardz,
-- Rincewind..
 
  


Reply



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
Qmail as a relay server Jukas Linux - Software 1 10-07-2005 04:07 AM
How do I set up a Qmail/Spamassassin Relay bwilliam79 Linux - Software 0 03-01-2004 04:36 PM
qmail open relay iwa Linux - Security 2 11-12-2003 07:40 AM
qmail or postfix relay sabah Linux - Networking 2 08-18-2003 10:52 AM
qmail smtp relay problem ka_alucard Linux - Networking 2 05-28-2003 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:23 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
Open Source Consulting | Domain Registration