Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I decided to setup a server on centOS and I'm following this guide, but I am stuck on this step, where they say, it is required to install postfix and system-switch-mail-gnome packages, but when I type
Code:
$ yum install system-switch-mail-gnome
Loaded plugins: fastestmirror, presto, priorities
Loading mirror speeds from cached hostfile
* base: mirror.nexcess.net
* centosplus: mirror.trouble-free.net
* extras: mirror.net.cen.ct.gov
* updates: centos.mirror.choopa.net
Setting up Install Process
No package system-switch-mail-gnome available.
Error: Nothing to do
, I am getting an error. Looks like, there is no such package and I don't know, what shall I do.
That package is for Gnome(A GUI for red hat systems) to be able to help you manage your mail server. There is not a need for that package to be installed to setup postfix.
so, it wants me to create some real user accounts, in order, for them, to be able to receive mails.
It wants me to check mails in /home/<username/Maildir/new/, so if I want a support@domain.com email, then I have to create such username?
For security you should set the default shell to be /sbin/nologin for the users if they are only going to be receiving mail.
Code:
useradd -s/sbin/nologin username
You can change the one that already has been added by switching to the user and using the 'chsh' command or editing your /etc/passwd file and changing it from /bin/bash to /sbin/nologin. After you have your user's set up you will want to look at configuring dovecot to allow pop3 connections for email retrieval. One gotcha with dovecot is that you will need to set it to run on boot with chkconfig as it will not by default after installation.
# /sbin/chkconfig --levels 2345 dovecot on
error reading information on service dovecot: No such file or directory
I will allow pop3 connections by entering this command?
Or I should do
Code:
iptables -A INPUT -p tcp --dport 110 -j ACCEPT
?
I've run the command "/sbin/chkconfig --levels 2345 dovecot on" and it went without any errors.
I've installed dovecot. Should I add port 110 with iptables or in some other way?
Stopping Dovecot Imap: [FAILED]
Starting Dovecot Imap: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: service(pop3-login): vsz_limit is too low
I tried to find, where to change vsz_limit, but failed. Can you help me to find, where is it?
# service dovecot restart
Stopping Dovecot Imap: [FAILED]
Starting Dovecot Imap: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:86: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
# install from EPEL
[root@mail ~]#
vi /etc/httpd/conf.d/mailgraph.conf
Alias /mailgraph /usr/share/mailgraph
AddHandler cgi-script .cgi
<Directory /usr/share/mailgraph/>
AllowOverride None
Options +ExecCGI
DirectoryIndex mailgraph.cgi
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
10.0.0.0/24
# IP address you allow
Error getting repository data for epel, repository not found
# yum install mailgraph
Loaded plugins: fastestmirror, presto, priorities
Loading mirror speeds from cached hostfile
* base: mirror.cogentco.com
* centosplus: mirror.symnds.com
* extras: mirror.trouble-free.net
* updates: mirror.trouble-free.net
base | 3.7 kB 00:00
c5-testing | 3.0 kB 00:00
centosplus | 3.5 kB 00:00
contrib | 951 B 00:00
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
Setting up Install Process
No package mailgraph available.
Error: Nothing to do
Is there another way to get a mailgraph?
Thank you.
Also, this thing:
Quote:
# /etc/rc.d/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for mycomputer
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
Quote:
# /etc/rc.d/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for mycomputer
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
Kindly,
check the conf file of resolv.conf, nd hosts in /etc/.... the DNS in not fulled qulified...
&
for mail graph
apt-get install rrdtool mailgraph
dpkg-reconfigure mailgraph
Logfile used by mailgraph: <-- /var/log/mail.log
should I literally use "mail.server.world", or should I change it to my domain name?
apt-get isn't working. Should I use yum install instead?
!mailgraph installation package cannot be found.
resolv.conf content (is it fine?):
nameserver 8.8.8.8
nameserver 8.8.4.4
Here, is what centOS6 prints:
(should I install all these additional packages?)
Quote:
# apt-get
-bash: apt-get: command not found
# yum install rrdtool mailgraph
Loaded plugins: fastestmirror, presto, priorities
Loading mirror speeds from cached hostfile
* base: mirror.cogentco.com
* centosplus: mirror.symnds.com
* extras: mirror.trouble-free.net
* updates: mirror.trouble-free.net
base | 3.7 kB 00:00
c5-testing | 3.0 kB 00:00
centosplus | 3.5 kB 00:00
contrib | 951 B 00:00
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
Setting up Install Process No package mailgraph available.
Resolving Dependencies
--> Running transaction check
---> Package rrdtool.x86_64 0:1.3.8-6.el6 will be installed
--> Processing Dependency: dejavu-sans-mono-fonts for package: rrdtool-1.3.8-6.el6.x86_64
--> Processing Dependency: dejavu-lgc-sans-mono-fonts for package: rrdtool-1.3.8-6.el6.x86_64
--> Processing Dependency: libpangocairo-1.0.so.0()(64bit) for package: rrdtool-1.3.8-6.el6.x86_64
--> Processing Dependency: libcairo.so.2()(64bit) for package: rrdtool-1.3.8-6.el6.x86_64
--> Processing Dependency: libpango-1.0.so.0()(64bit) for package: rrdtool-1.3.8-6.el6.x86_64
--> Running transaction check
---> Package cairo.x86_64 0:1.8.8-3.1.el6 will be installed
--> Processing Dependency: libpixman-1.so.0()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
---> Package dejavu-lgc-sans-mono-fonts.noarch 0:2.30-2.el6 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.30-2.el6 for package: dejavu-lgc-sans-mono-fonts-2.30-2.el6.noarch
---> Package dejavu-sans-mono-fonts.noarch 0:2.30-2.el6 will be installed
---> Package pango.x86_64 0:1.28.1-3.el6_0.5.1.centos will be installed
--> Processing Dependency: libthai >= 0.1.9 for package: pango-1.28.1-3.el6_0.5.1.centos.x86_64
--> Processing Dependency: libthai.so.0(LIBTHAI_0.1)(64bit) for package: pango-1.28.1-3.el6_0.5.1.centos.x86_64
--> Processing Dependency: libthai.so.0()(64bit) for package: pango-1.28.1-3.el6_0.5.1.centos.x86_64
--> Processing Dependency: libXft.so.2()(64bit) for package: pango-1.28.1-3.el6_0.5.1.centos.x86_64
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.30-2.el6 will be installed
--> Processing Dependency: fontpackages-filesystem for package: dejavu-fonts-common-2.30-2.el6.noarch
---> Package libXft.x86_64 0:2.1.13-4.1.el6 will be installed
---> Package libthai.x86_64 0:0.1.12-3.el6 will be installed
---> Package pixman.x86_64 0:0.18.4-1.el6_0.1 will be installed
--> Running transaction check
---> Package fontpackages-filesystem.noarch 0:1.41-1.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================== ====
Package Arch Version Repository Size
==================================================================================================== ====
Installing:
rrdtool x86_64 1.3.8-6.el6 base 293 k
Installing for dependencies:
cairo x86_64 1.8.8-3.1.el6 base 309 k
dejavu-fonts-common noarch 2.30-2.el6 base 59 k
dejavu-lgc-sans-mono-fonts noarch 2.30-2.el6 base 393 k
dejavu-sans-mono-fonts noarch 2.30-2.el6 base 450 k
fontpackages-filesystem noarch 1.41-1.1.el6 base 8.8 k
libXft x86_64 2.1.13-4.1.el6 base 49 k
libthai x86_64 0.1.12-3.el6 base 183 k
pango x86_64 1.28.1-3.el6_0.5.1.centos updates 350 k
pixman x86_64 0.18.4-1.el6_0.1 base 146 k
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.