LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-02-2004, 08:37 AM   #1
juglugs
LQ Newbie
 
Registered: Sep 2001
Location: UK
Distribution: mandrake and Red Hat
Posts: 20

Rep: Reputation: 0
Question qmail only sending to ip or HOTMAIL!!


Hi, i have recently inherited an ISP and there seems to have been a problem with the qmail configuration for quite a while - trouble is it will only send mails out to an IP address or HOTMAIL ie any perl scripts i write can only mail directly to an IP address or to whoever@hotmail.com.
I guess this is a configuration problem has anyone any ideas where the file that restricts qmail like this is ?
Thanks 4 your time
 
Old 09-02-2004, 09:36 AM   #2
littleking
Member
 
Registered: Jun 2003
Location: New Albany, OH
Posts: 190

Rep: Reputation: 30
check the /var/qmail/control/ files
 
Old 09-06-2004, 04:59 AM   #3
juglugs
LQ Newbie
 
Registered: Sep 2001
Location: UK
Distribution: mandrake and Red Hat
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks, but unfortunately I had already checked these files and there are no such restrictions in here. I should have mentioned this before sorry.

Any other ideas ?
 
Old 09-06-2004, 06:09 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
"/var/qmail/bin/qmail-showctl" will show u some information about your qmail configuration.

the qmail config files.
http://lifewithqmail.org/lwq.html#config-files

good luck
 
Old 09-06-2004, 08:16 AM   #5
juglugs
LQ Newbie
 
Registered: Sep 2001
Location: UK
Distribution: mandrake and Red Hat
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks maxut but no joy All of the configuration files appear ok I am looking for something containing Hotmail as this, i assume, would need to be present in order to restrict all mail out to addresses containing hotmail only. Do you think it could be a user thing rather than a qmail thing ?
 
Old 09-10-2004, 07:18 AM   #6
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
How about /etc/tcp.smtp
 
Old 09-10-2004, 07:42 AM   #7
juglugs
LQ Newbie
 
Registered: Sep 2001
Location: UK
Distribution: mandrake and Red Hat
Posts: 20

Original Poster
Rep: Reputation: 0
nope, nothing there either, could this be a remnant of a sendmail config ??
 
Old 09-10-2004, 08:58 AM   #8
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
Quote:
Originally posted by juglugs
Do you think it could be a user thing rather than a qmail thing ?
surely yes, it is possible. a user can type anything else as his mail address. if your qmail has smtp-auth-pacth that user must login as real account name and password to send mails. relaying mustnt be allowed also. /etc/tcp.smtp

u can use "fgrep" to search files that contain "hotmail" word:
fgrep -r hotmail /var/qmail


do your clients use webmail interface?

good luck.

Last edited by maxut; 09-10-2004 at 08:59 AM.
 
Old 09-10-2004, 09:35 AM   #9
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
If it were me, I'd start over. Get yourself a brand new server and setup qmail and all your extras from scratch... this way you know what you're working with. Sounds like you're working with somebody else's crap that needs to be wiped out.

I have to assume this isn't a production box. If it is, your users are probably fit to be tied because they can only send to hotmail. I'd either wipe out qmail and start over on that machine or get a new machine and install it from scratch.
 
Old 09-10-2004, 10:03 AM   #10
juglugs
LQ Newbie
 
Registered: Sep 2001
Location: UK
Distribution: mandrake and Red Hat
Posts: 20

Original Poster
Rep: Reputation: 0
Thumbs up

sounds like a mighty fine idea to me - I just need to convince the bods that be
 
Old 09-10-2004, 10:16 AM   #11
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Well, if you don't start over and get a new box, at the very least you should be able to wipe it out and start over without needing to get too much approval. I mean, surely this isn't a production box. If its not, then you're not really losing anything except your time spent getting it setup again.

I also recommend using a howto like www.qmailrocks.org. I personally prefer the one listed in my signature, but everyone has their own preference. By using a howto like this, you're able to pass this server on to another admin in the future and he can easily tell what you've got installed based on the howto that was used.
 
Old 09-10-2004, 12:40 PM   #12
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Maybe your nameserving is f.cked up and hotmail is in /etc/hosts or in some weird leftover cache.

Does dig nslookup give you the right stuff?
 
Old 09-15-2004, 03:42 AM   #13
juglugs
LQ Newbie
 
Registered: Sep 2001
Location: UK
Distribution: mandrake and Red Hat
Posts: 20

Original Poster
Rep: Reputation: 0
Talking

Found it.........

It appears that I have in fact misled all of you with the question posted - it was in fact due to the verification of the return address by qmail.

Turns out that mailing to the ip and Hotmail was coded and the scripts were 'faking' a return address and therefore fooling qmail into thinking that these mails were ok to send as the return address was valid.

Any standard mails attempting to go out however were using the default return address set up in the /qmail/control files which was a bad address.

Fixed the files in the /qmail/control dir and all is hunky dory!

Thanks to everyone for their help.

Jugger
 
  


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 + dsl problem sending to hotmail and yahoo verzonnen Linux - Newbie 2 06-11-2004 12:30 PM
Installed hotway daemon to download e-mails from hotmail account. Problems sending.. sjia Linux - General 1 03-09-2004 10:10 AM
hotmail on konqueror sending mail twice citrus Linux - General 3 02-05-2004 12:00 PM
sendmail hangs sending to hotmail... no suprise there then acid_kewpie Linux - Networking 3 09-09-2002 09:05 PM
qmail delivery problem to hotmail & yahoo only AAS Linux - Networking 0 03-20-2002 02:15 PM


All times are GMT -5. The time now is 10:49 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration