LinuxQuestions.org
Register a domain and help support LQ
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-20-2004, 01:19 AM   #1
gubak
Member
 
Registered: Jul 2004
Posts: 324

Rep: Reputation: 30
Can't send mails out to the internet


I have RedHat9 server (MTA is Postfix), LAN, full-time internet connection, public ip and registered domain.

My main.cf file is like that:

myhostname=ns1.mydomain
myorigin=mydomain
inet_interfaces=all
mydestination=myhostname, localhost.mydomain
mynetworks= mynetwork, 127.0.0.0/8
relayhost=[mail.mydomain]

etc.


My problem is, that I can't send mails out to the internet.
If I try to send the "mail logs" gives me a message :

to=<user@hotmail.com>, relay=mail.mydomain[ip], delay=0, status=bounced
(mail for [mail.mydomain]loops back to myself.)

Why can't I send mails out to the internet

Last edited by gubak; 10-20-2006 at 06:39 AM.
 
Old 08-20-2004, 07:19 AM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
Are you trying to send mail using an account with a domain other than your own?
For instance....your machine is using myredhatbox.com, but you are attempting to use another domain to send mail, like user@earthlink.net?

If this is the case, you will not be able to send mail.
Virtually all SMTP mail servers are configured to reject mail on this basis to prevent spoofing/spamming.
 
Old 08-20-2004, 11:11 AM   #3
gubak
Member
 
Registered: Jul 2004
Posts: 324

Original Poster
Rep: Reputation: 30
I've sent mail with my domain.
For example:
my domain is example.com, and my mail server name is mail.example.com.
I set relayhost=mail.example.com.
I've tired to send mail from user@example.com to user@hotmail.com and I can't. I think it is possible, but i don't know why doesn't work?
Must I set the relayhost in my case?

Last edited by gubak; 08-20-2004 at 11:13 AM.
 
Old 08-20-2004, 12:25 PM   #4
gubak
Member
 
Registered: Jul 2004
Posts: 324

Original Poster
Rep: Reputation: 30
I've just found out that I can't receive mails as well .
I don't know what is happening at me, but every mail (incoming, outgoing) is bounced of my mail server except the local mails.
What is the problem?
Has anybody an idea?
 
Old 08-20-2004, 12:34 PM   #5
Osiris123d
LQ Newbie
 
Registered: Oct 2003
Posts: 18

Rep: Reputation: 0
I'm not totally sure, but it could have something to do with MX records. Try looking that up on google. Sorry I can't be more of assistance.
 
Old 08-20-2004, 06:08 PM   #6
bithika
LQ Newbie
 
Registered: Apr 2004
Location: London
Posts: 4

Rep: Reputation: 0
your mail program may be configured to look up the /etc/hosts file first ...

what entries do you have in your /etc/hosts file?

if you just have

127.0.0.1 localhost.localdomain localhost

then this may be causing the problem.

try adding the line

<machineIPaddress> <yourhost.yourdomain> <yourhost>


cheers
Bithika
 
Old 08-21-2004, 03:39 AM   #7
gubak
Member
 
Registered: Jul 2004
Posts: 324

Original Poster
Rep: Reputation: 30
If my domain is example.com

My MX record is like that:

@ MX 2 mail.example.com.

and this record takes place in the example.com.zone file.
Is it correct?

In the /etc/hosts file there are only two records :

127.0.0.1 ns1 localhost.localdomain localhost
xxx.xxx.xxx.xxx ns1 localhost.example.com localhost

ns1 is the hostname of the machine.
Is it correct?

Last edited by gubak; 08-21-2004 at 03:49 AM.
 
Old 08-21-2004, 05:38 AM   #8
bithika
LQ Newbie
 
Registered: Apr 2004
Location: London
Posts: 4

Rep: Reputation: 0
try removing ns1

so that your /etc/hosts looks like


127.0.0.1 ns1 localhost.localdomain localhost
xxx.xxx.xxx.xxx localhost.example.com localhost
 
Old 08-21-2004, 05:38 AM   #9
bithika
LQ Newbie
 
Registered: Apr 2004
Location: London
Posts: 4

Rep: Reputation: 0
try removing ns1

so that your /etc/hosts looks like


127.0.0.1 ns1 localhost.localdomain localhost
xxx.xxx.xxx.xxx localhost.example.com localhost
 
Old 08-21-2004, 10:57 AM   #10
gubak
Member
 
Registered: Jul 2004
Posts: 324

Original Poster
Rep: Reputation: 30
I've removed but the problem is the same.
Have you any other idea?
 
Old 08-23-2004, 01:14 AM   #11
gubak
Member
 
Registered: Jul 2004
Posts: 324

Original Poster
Rep: Reputation: 30
problem with receiveing

RedHat9, postfix
I have a receiveing mail problem.
I have public ip and a registered domain for example "example.com". My mailserver machine name is :

mail.example.com

My MX record in the example.com.zone file is:

@ IN MX 2 mail.example.com

If I try to send mail to user@example.com from remote email (for example user@hotmail.com), I can't receive the mail, but if I send mail to user@mail.example.com I can receive the mail.
Why can't I receive mails to address user@example.com?

Last edited by gubak; 10-20-2006 at 06:40 AM.
 
Old 08-23-2004, 06:26 AM   #12
gubak
Member
 
Registered: Jul 2004
Posts: 324

Original Poster
Rep: Reputation: 30
Can't send and receive mails

I have a public ip, registered domain, full-time internet. I use postfix as my MTA.
Let's suppose that my domain name is example.com, and my mail server name is mail.example.com


I can't send mails to reomte domains.
For example :

from my_user@example.com to tippnet_user@tippnet.com

But If I know the name of the remote mail server (in our cases mail.tippnet.com), I can send mail to tippnet_user@mail.tippnet.com.

If I try to send mail from remote address to my address :

from tippnet_user@tippnet.com to my_user@example.com

I can't, but if I try this:

from tippnet_user@tippnet.com to my_user@mail.example.com

I receive the mails

Why does it happen?

Last edited by gubak; 10-20-2006 at 06:40 AM.
 
Old 08-23-2004, 07:04 AM   #13
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
gubak

You should have some keyword/setting that should configure postfix to accept mails for your domainname.
 
Old 08-23-2004, 07:07 AM   #14
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
gubak I have answered to your other post at

http://www.linuxquestions.org/questi...31#post1126731
 
Old 08-23-2004, 08:49 AM   #15
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
gubak, you started three seperate threads for the exact same problem. Please do not do that! It scatters the answers over multiple threads and makes it much harder for people trying to help you. I've merged all three threads together now. If you have any more questions about your issues with Postfix and e-mail, please post them in this thread.

Thanks.
 
  


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
Users can't send mails hobz Linux - General 3 12-13-2004 09:44 AM
send mails with attachment ProXXXy Linux - Networking 2 08-18-2004 03:33 AM
HELP!!! Cannot send mails in SLACKWARE 9.1 vinay_s_s Linux - Software 5 03-24-2004 08:48 AM
sendmail doesnt send mails spank Linux - Newbie 12 01-07-2004 02:31 PM
how do I send and recieve mails locally? hpnadig Linux - Networking 10 01-04-2004 05:23 AM


All times are GMT -5. The time now is 01:48 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration