Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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";
};
$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...
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
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):
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.