SlideShare a Scribd company logo
Version 1.01
I. P. N. EDMONDS 1
BASIC LINUX SYSTEM CONFIGURATIONS
IMPORTANT NOTICE
- Paths may vary depending on Linux Operating Systems (OS) used and version of application
- I am not entirely responsible for any misconfigurations on your system
- Linux Operating Systems (OS) used include OpenSuSe, CentOS and Ubuntu
- It is assumed that the core Operating System has been installed with necessary dependencies
- Some steps may have been skipped or ignored, and network configurations are not party
- Below are not all the configurations you might have to make
eMail Server using Postfix, Dovecot and Squirrelmail
Focus is on Postfix and Dovecot
POSTFIX (SMTP)
File Name / Path = /etc/postfix/main.cf
## Fields to Add
mydomain =
# mydomain = domain
myorigin = $mydomain
mynetworks = IPClass/24, 127.0.0.0/8
## Fields to Edit
myhostname = test.domain
# myhostname = servername.domain
mydestination = $myhostname, localhost.$mydomain, $mydomain
smtpd_sender_restrictions =
hash:/etc/postfix/access,
reject_unknown_sender_domain,
permit_mynetworks,
permit
# Anti-SPAM
smtpd_helo_required = yes
disable_vrfy_command = yes
strict_rfc821_envelopes = yes
Version 1.01
I. P. N. EDMONDS 2
invalid_hostname_reject_code = 554
multi_recipient_bounce_reject_code = 554
non_fqdn_reject_code = 554
relay_domains_reject_code = 554
unknown_address_reject_code = 554
unknown_client_reject_code = 554
unknown_hostname_reject_code = 554
unknown_local_recipient_reject_code = 554
unknown_relay_recipient_reject_code = 554
unknown_virtual_alias_reject_code = 554
unknown_virtual_mailbox_reject_code = 554
unverified_recipient_reject_code = 554
unverified_sender_reject_code = 554
smtpd_recipient_restrictions =
reject_invalid_hostname,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client dnsbl.sorbs.net,
reject_rbl_client cbl.abuseat.org,
permit
mailbox_size_limit =
# Size always in bytes (1000 bytes = 1KB)
message_size_limit =
# Size always in bytes (1000 bytes = 1KB)
Version 1.01
I. P. N. EDMONDS 3
Dovecot (POP3 & IMAP) Edits
N.B: Associated edits seem to have changed a lot with the latest versions based on an installation with RoundCube
in July 2015 running on Ubuntu
File Name / Path = /etc/dovecot/dovecot.conf
protocols = pop3 pop3s imap imaps
ssl_disable = yes
login_greeting = "Your Custom Message Goes Here"
# Under "protocol imap"
mail_plugin_dir = /usr/local/lib/dovecot/imap
# End IMAP
# Under "protocol pop3"
pop3_uidl_format = %08Xu%08Xv
mail_plugin_dir = /usr/local/lib/dovecot/pop3
# End POP3
# Under "protocal lda"
mail_plugin_dir = /usr/local/lib/dovecot/lda
# End LDA
### Comment = Adding "#"
## Comment "passdb pam" & the corresponding closing bracket
## Un-comment "passdb passwd" & corresponding closing bracket
## Un-comment "passdb shadow" & corresponding closing bracket
# Create user and group "dovecot"
# cp /etc/local/sbin/dovecot to /etc/init.d/
# Edit /etc/init.d/boot.local and add "/etc/init.d/dovecot &"
The following is not necessarily related to eMail Server Configurations
CRONTAB
The Syntax
#minute hour day of month month day of week command
Sample Crontab: - To automatically reboot a server at 20:15 hrs everyday with 5 minute server warnings
15 20 * * * /sbin/shutdown -r +5
Version 1.01
I. P. N. EDMONDS 4
Web Development
Adding a password protected page into another page …
<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://full.path/to.page");
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ;
curl_setopt($curl, CURLOPT_USERPWD, "USERNAME:PASSWORD");
curl_exec($curl);
curl_close($curl);
?>
This is my very first PUBLIC / INTERNET resource sharing. Constructive suggestions are welcome.
Depending on my schedules and knowledge, I am able to offer basic and administrative assistance* to specific
queries on Squid, Zimbra Open Source Edition, Shoreline Firewall, hotspot software among others from installation
to customization / configuration. Sharing all the raw data as related might be very confusing.
Thank you.

More Related Content

PPTX
Lamp introduction in Fedora
PDF
Php tutorial guestbook system
PDF
MySql Restore Script
PDF
Api gateway migration
PDF
Choosing Linux Distro - Personal Desktop
PPT
WordPress 3.0 MultiSite Features
DOC
Modul quick debserver
PPT
Apache
Lamp introduction in Fedora
Php tutorial guestbook system
MySql Restore Script
Api gateway migration
Choosing Linux Distro - Personal Desktop
WordPress 3.0 MultiSite Features
Modul quick debserver
Apache

What's hot (16)

PPT
Making the secure communication between Server and Client with https protocol
PDF
How to install r1 soft
PDF
How to Block Malicious Address by Using Feed Service?
TXT
PDF
Modul server debian 5
PDF
How to reset forgotten obiee 11 g rpd passwd
PPT
INSTALAÇÃO DO MERCURY
PPTX
Drupal, Memcache and Solr on Windows
PDF
Scale13
PPT
PPT
Serving Moodle Presentation
PDF
Basics Ubuntu commands
PDF
Poppassd setup howto for rhel cent os 5 ‹‹ linux mail server setup and howto ...
DOCX
Linux questions
DOC
3 level cert tomcat
Making the secure communication between Server and Client with https protocol
How to install r1 soft
How to Block Malicious Address by Using Feed Service?
Modul server debian 5
How to reset forgotten obiee 11 g rpd passwd
INSTALAÇÃO DO MERCURY
Drupal, Memcache and Solr on Windows
Scale13
Serving Moodle Presentation
Basics Ubuntu commands
Poppassd setup howto for rhel cent os 5 ‹‹ linux mail server setup and howto ...
Linux questions
3 level cert tomcat
Ad

Similar to Basic Linux Configurations (20)

PPTX
SquirrelMail for webmail
PDF
TinyOS installation Guide And Manual
PDF
Deployer - Deployment tool for PHP
ODP
Intro To Linux
PDF
Exploring Async PHP (SF Live Berlin 2019)
PPT
Happy porting x86 application to android
PPT
Install and configure linux
PDF
Ldap configuration documentation
PDF
Step by step_linux_guide
PPT
Ch23 system administration
PPT
PHP 5 Sucks. PHP 5 Rocks.
PDF
Towards the perfect Drupal Dev Machine
PDF
Linux advanced privilege escalation
PPT
Capistrano Overview
PPT
Power point on linux commands,appache,php,mysql,html,css,web 2.0
PPT
Linux presentation
PDF
Writing & Sharing Great Modules - Puppet Camp Boston
ODP
Asian Spirit 3 Day Dba On Ubl
PPT
How to? Drupal developer toolkit. Dennis Povshedny.
PDF
Mail
SquirrelMail for webmail
TinyOS installation Guide And Manual
Deployer - Deployment tool for PHP
Intro To Linux
Exploring Async PHP (SF Live Berlin 2019)
Happy porting x86 application to android
Install and configure linux
Ldap configuration documentation
Step by step_linux_guide
Ch23 system administration
PHP 5 Sucks. PHP 5 Rocks.
Towards the perfect Drupal Dev Machine
Linux advanced privilege escalation
Capistrano Overview
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Linux presentation
Writing & Sharing Great Modules - Puppet Camp Boston
Asian Spirit 3 Day Dba On Ubl
How to? Drupal developer toolkit. Dennis Povshedny.
Mail
Ad

Basic Linux Configurations

  • 1. Version 1.01 I. P. N. EDMONDS 1 BASIC LINUX SYSTEM CONFIGURATIONS IMPORTANT NOTICE - Paths may vary depending on Linux Operating Systems (OS) used and version of application - I am not entirely responsible for any misconfigurations on your system - Linux Operating Systems (OS) used include OpenSuSe, CentOS and Ubuntu - It is assumed that the core Operating System has been installed with necessary dependencies - Some steps may have been skipped or ignored, and network configurations are not party - Below are not all the configurations you might have to make eMail Server using Postfix, Dovecot and Squirrelmail Focus is on Postfix and Dovecot POSTFIX (SMTP) File Name / Path = /etc/postfix/main.cf ## Fields to Add mydomain = # mydomain = domain myorigin = $mydomain mynetworks = IPClass/24, 127.0.0.0/8 ## Fields to Edit myhostname = test.domain # myhostname = servername.domain mydestination = $myhostname, localhost.$mydomain, $mydomain smtpd_sender_restrictions = hash:/etc/postfix/access, reject_unknown_sender_domain, permit_mynetworks, permit # Anti-SPAM smtpd_helo_required = yes disable_vrfy_command = yes strict_rfc821_envelopes = yes
  • 2. Version 1.01 I. P. N. EDMONDS 2 invalid_hostname_reject_code = 554 multi_recipient_bounce_reject_code = 554 non_fqdn_reject_code = 554 relay_domains_reject_code = 554 unknown_address_reject_code = 554 unknown_client_reject_code = 554 unknown_hostname_reject_code = 554 unknown_local_recipient_reject_code = 554 unknown_relay_recipient_reject_code = 554 unknown_virtual_alias_reject_code = 554 unknown_virtual_mailbox_reject_code = 554 unverified_recipient_reject_code = 554 unverified_sender_reject_code = 554 smtpd_recipient_restrictions = reject_invalid_hostname, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client dnsbl.sorbs.net, reject_rbl_client cbl.abuseat.org, permit mailbox_size_limit = # Size always in bytes (1000 bytes = 1KB) message_size_limit = # Size always in bytes (1000 bytes = 1KB)
  • 3. Version 1.01 I. P. N. EDMONDS 3 Dovecot (POP3 & IMAP) Edits N.B: Associated edits seem to have changed a lot with the latest versions based on an installation with RoundCube in July 2015 running on Ubuntu File Name / Path = /etc/dovecot/dovecot.conf protocols = pop3 pop3s imap imaps ssl_disable = yes login_greeting = "Your Custom Message Goes Here" # Under "protocol imap" mail_plugin_dir = /usr/local/lib/dovecot/imap # End IMAP # Under "protocol pop3" pop3_uidl_format = %08Xu%08Xv mail_plugin_dir = /usr/local/lib/dovecot/pop3 # End POP3 # Under "protocal lda" mail_plugin_dir = /usr/local/lib/dovecot/lda # End LDA ### Comment = Adding "#" ## Comment "passdb pam" & the corresponding closing bracket ## Un-comment "passdb passwd" & corresponding closing bracket ## Un-comment "passdb shadow" & corresponding closing bracket # Create user and group "dovecot" # cp /etc/local/sbin/dovecot to /etc/init.d/ # Edit /etc/init.d/boot.local and add "/etc/init.d/dovecot &" The following is not necessarily related to eMail Server Configurations CRONTAB The Syntax #minute hour day of month month day of week command Sample Crontab: - To automatically reboot a server at 20:15 hrs everyday with 5 minute server warnings 15 20 * * * /sbin/shutdown -r +5
  • 4. Version 1.01 I. P. N. EDMONDS 4 Web Development Adding a password protected page into another page … <?php $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "http://full.path/to.page"); curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ; curl_setopt($curl, CURLOPT_USERPWD, "USERNAME:PASSWORD"); curl_exec($curl); curl_close($curl); ?> This is my very first PUBLIC / INTERNET resource sharing. Constructive suggestions are welcome. Depending on my schedules and knowledge, I am able to offer basic and administrative assistance* to specific queries on Squid, Zimbra Open Source Edition, Shoreline Firewall, hotspot software among others from installation to customization / configuration. Sharing all the raw data as related might be very confusing. Thank you.