LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 01-19-2005, 07:22 AM   #1
rincewind
Member
 
Registered: Mar 2004
Posts: 32
Thanked: 0
qmail + relay ... help..


[Log in to get rid of this advertisement]
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..
rincewind is offline     Reply With Quote
Old 01-24-2005, 08:32 AM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Thanked: 0
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.
Donboy is offline     Reply With Quote
Old 01-24-2005, 10:49 AM   #3
rincewind
Member
 
Registered: Mar 2004
Posts: 32
Thanked: 0

Original Poster
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..
rincewind is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 07:11 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration