LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-19-2007, 07:16 PM   #1
radiox
LQ Newbie
 
Registered: Sep 2007
Location: UK
Distribution: CentOS
Posts: 4

Rep: Reputation: 0
Centos 4.4 DNS and/or Sendmail/Postfix issue


Hi all,

I am at the end of my research powers with this:

I run Centos 4.4 as a nameserver and webserver.

The problem is that I cannot get to work emails.
I can retrieve the emails with outlook but I cannot send any email from Outlook or from my linux to outside addresses. I can send emails internally.

After reading some posts I went and checked if my server can see the domain where i try to send emails.

Quote:
[root@piticu02 ~]# host fastcom.ie
fastcom.ie has address 81.17.252.25
Now, that's ok. My server is connected to the web.

my hosts file
Quote:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 piticu02.site.com localhost.localdomain piticu02 localhost
my named.conf file
Quote:
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/var/named/chroot/var/named";
auth-nxdomain no;
recursion no;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
allow-transfer {none;};
};

//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};

zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};

zone "1.168.192.in-addr.arpa" {
type master;
file "pri.1.168.192.in-addr.arpa";
};
zone "xx.xxx.xx.in-addr.arpa" {
type master;
file "pri.xx.xxx.xx.in-addr.arpa";
};


zone "xx.com" {
type master;
file "pri.xx.com";
};
zone "xxx.com" {
type master;
file "pri.xxx.com";
};
zone "xxxx.com" {
type master;
file "pri.xxxx.com";
};
zone "xxxxxx.com" {
type master;
file "pri.xxxxx.com";
};



//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
logging {
channel bindlog {
file "/var/log/bindlog" versions 5 size 1m;
print-time yes;
print-category yes;
print-severity yes;
};
category xfer-out { bindlog; };
category xfer-in { bindlog; };
category security { bindlog; };
category panic { bindlog; };
category insist { bindlog; };
category response-checks { bindlog; };};
my pri.xxxxx.com~ file
Quote:
$TTL 1D
@ IN SOA ns1.xxxx.com. admin.xxxxx.com. (
2007092001 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
NS ns1.xx.com. ; Inet Address of name server 1
NS ns2.xx.com. ; Inet Address of name server 2
;

xxxxx.com. MX 0 mail.oprishosting.com. ;Primary Mail Exchanger

xxxxx.com. A xx.xxx.xx.xx
www A xx.xxx.xx.xx
mail A xx.xxx.xx.xx

xxxxx.com. TXT "v=spf1 a mx ptr ~all"

;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
www IN CNAME node1 ;- Define the webserver "www" to be node1.
ftp IN CNAME node1 ;- Define the ftp server to be node1.



I have Webmin, Postfix and Sendmail. I am not sure what is best to use. I tried running Sendmail and then postfix but no different results.

I have made some changes in the zone file , updated the serial and date, restarted named and no luck.

I am stuck at this . Can anyone bring me to the right track?

All domains hosted are domains I can play with so no worries if you ask me to do something drastic...

Regards,

Last edited by radiox; 09-20-2007 at 05:08 PM.
 
Old 09-20-2007, 03:18 AM   #2
jordy5
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
Could you post some logging, like /var/log/maillog, arround the time you try sending a mail.
 
Old 09-20-2007, 06:02 AM   #3
radiox
LQ Newbie
 
Registered: Sep 2007
Location: UK
Distribution: CentOS
Posts: 4

Original Poster
Rep: Reputation: 0
Yes,

Quote:
Sep 20 11:56:51 piticu02 pop3-login: Login: web22_nick [::ffff:88.151.81.26]
Sep 20 11:59:32 piticu02 sendmail[17484]: l8KAxTFh017484: from=root@piticu02.xxx.com, size=489, class=0, nrcpts=1, msgid=<1190285969.17473@piticu02.xxx.com>, relay=root@localhost
Sep 20 11:59:32 piticu02 sendmail[17487]: l8KAxWfh017487: from=<root@piticu02.xxx.com>, size=628, class=0, nrcpts=1, msgid=<1190285969.17473@piticu02.xxx.com>, proto=ESMTP, daemon=MTA, relay=piticu02.xxx.com [127.0.0.1]
Sep 20 11:59:32 piticu02 sendmail[17484]: l8KAxTFh017484: to=nick@xx.com, ctladdr=root@piticu02.xxx.com (0/0), delay=00:00:03, xdelay=00:00:00, mailer=relay, pri=30489, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l8KAxWfh017487 Message accepted for delivery)
Sep 20 11:59:32 piticu02 sendmail[17488]: l8KAxWfh017487: to=nick@xx.com, ctladdr=<nick@xx.com> (8/0), delay=00:00:00, mailer=local, pri=120628, dsn=5.1.1, stat=User unknown
Sep 20 11:59:32 piticu02 sendmail[17488]: l8KAxWfh017487: to=<nick@xx.com>, delay=00:00:00, mailer=local, pri=120628, dsn=5.1.1, stat=User unknown
Sep 20 11:59:32 piticu02 sendmail[17488]: l8KAxWfh017487: l8KAxWfh017488: DSN: User unknown
Sep 20 11:59:32 piticu02 sendmail[17488]: l8KAxWfh017488: to=<root@piticu02.xxx.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31894, dsn=2.0.0, stat=Sent
Sep 20 11:59:42 piticu02 pop3-login: Login: web22_nick [::ffff:88.151.81.26]
i tried to send an email using webmin from root to an account internally.

I get this:
Quote:
The original message was received at Thu, 20 Sep 2007 11:59:32 +0100
from piticu02.xxx.com [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<nick@xx.com>
(reason: 550 5.1.1 User unknown)
nick@xx.com
(reason: 550 5.1.1 User unknown)
(expanded from: <nick@xx.com>)

----- Transcript of session follows -----
550 5.1.1 nick@xx.com... User unknown
550 5.1.1 <nick@xx.com>... User unknown

Last edited by radiox; 09-20-2007 at 05:10 PM.
 
Old 09-20-2007, 06:17 AM   #4
jordy5
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
Been ages since I manually configured mail accounts.

You said you couldn't send emails. But the errors show that the "received" mail account doesn't exists. While this server is set to be the receiver for "oprishosting.com", but doesn't have a user/mailbox "nick".

Please review your configuration, following article could help you with that (Postfix):

http://www.akadia.com/services/postfix_mta.html
 
Old 09-20-2007, 05:04 PM   #5
radiox
LQ Newbie
 
Registered: Sep 2007
Location: UK
Distribution: CentOS
Posts: 4

Original Poster
Rep: Reputation: 0
I had multiple issues, main one was that the server was not listening on the external IP address.

Thank you for your time.

Last edited by radiox; 09-20-2007 at 06:07 PM.
 
  


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
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 01:10 PM
CentOS 4.2, Sendmail Problem adnonimape Linux - Software 2 03-24-2006 06:35 PM
sendmail / dns issue? grantw Linux - General 1 11-26-2005 02:34 PM
Postfix DNS issue collen Linux - Networking 1 11-30-2004 12:59 PM
sendmail and dns issue? rchilakapati Linux - Newbie 1 10-02-2003 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:52 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