Вы находитесь на странице: 1из 9

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apac...

http://www.howtoforge.com/squirrelmail-configuration-easy-steps-squirr...

Register

Login

Contribute
Search

Subscribe

RSS

Howtos

Forums

Contribute

Subscribe

ISPConfig

FAQForge

News

Options For This Howto


Free Support Paid Support

Navigation
[+] Expand [-] Collapse

Howtos Linux Android CentOS Debian Fedora Kernel Mandriva PCLinuxOS SuSE Ubuntu Web Server Apache Cherokee Lighttpd nginx Backup Control Panels ISPConfig DNS BIND MyDNS PowerDNS djbdns Desktop Email Anti-Spam/Virus Postfix FTP High-Availability Monitoring MySQL Programming C/C++ PHP Samba Security Anti-Spam/Virus Storage Virtualization

1 of 9

8/26/2011 9:56 PM

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apac...

http://www.howtoforge.com/squirrelmail-configuration-easy-steps-squirr...

KVM OpenVZ VMware VirtualBox Xen Other FreeBSD Commercial Mini-Howtos Forums Contribute Subscription Login Site Map/RSS Feeds

"aha" moments for ITbefore you buy. and the business.

User login
Username: Password: Remember Me?

Create a new account Request new password

Facebook
Find us on Facebook

HowtoForge
Like
Facebook social plugin

Who's online
There are currently 10 users and 3519 guests online.

HowtoForge Forums
PhpMyadmin 3.4.4 errors Problem with outgoing mail from server

2 of 9

8/26/2011 9:56 PM

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apac...

http://www.howtoforge.com/squirrelmail-configuration-easy-steps-squirr...

Client-Templates Limit error Several logs often dont show in the ISPConfig ... Lots of errors / MySQL overload Unable to receive gmail Samba questions Unable to download unbuntu portable Mirroring Questions Ispconfig 3 Help

News
Ubuntu 11.10's Default Wallpaper How Open Source is Android After all? Ubuntu eyes ARM servers Top 10 Announcements to Expect from HP CEO Leo Apotheker Linux Professional Institute Hosts Exam Labs at Ohio LinuxFest 2011 Thinking inside and outside the Bochs with Kevin Lawton Giving Dreamfish a 'Grant' Quick Look at Bodhi Linux 1.1.0 How to install Urban Terror in Fedora Aug, 2011: The Month That Rocked Technology more

Recent comments
Re: Error download mod_ruby, .......not found!!! 10 hours 2 min ago Icinga also available in Debian Backports 19 hours 58 min ago Error download mod_ruby, .......not found!!! 20 hours 9 min ago Can't Download Portable Install File 21 hours 37 min ago

3 of 9

8/26/2011 9:56 PM

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apac...

http://www.howtoforge.com/squirrelmail-configuration-easy-steps-squirr...

Re: Re: Ubuntu 8.10 1 day 2 hours ago Re: Re: Version mismatch 1 day 7 hours ago Re: php.ini edit 1 day 7 hours ago Be Careful When Copy/Pasting In Commands 1 day 10 hours ago Re: Re: I found this very useful, 1 day 19 hours ago It is stated in the 1 day 19 hours ago

Newsletter
Subscribe to HowtoForge Newsletter and stay informed about our latest HOWTOs and projects. enter email address

(To unsubscribe from our newsletter, visit this link.)


English | Deutsch | Site Map/RSS Feeds | Advertise

You are here:

Home Howtos Linux CentOS SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apache On RedHat/CentOS/Fedora)

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apache On RedHat/CentOS/Fedora)

Want to support HowtoForge? Become a subscriber!


Submitted by hhh123 (Contact Author) (Forums) on Thu, 2009-10-15 13:39. :: CentOS Fedora | Email

Like

Send

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apache On RedHat/CentOS/Fedora)

4 of 9

8/26/2011 9:56 PM

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apac...

http://www.howtoforge.com/squirrelmail-configuration-easy-steps-squirr...

This tutorial explains how you can install and configure SquirrelMail on a RedHat/CentOS/Fedora based mail server which uses Sendmail and Apache. Scenario: Primary Mail Server: linuxbox4 (192.168.0.14) Domain Name: Trusted IP Pool: 192.168.0.0/24 abc.com

Note: Replace domain name and system name and IP according to your scenario.

Prerequisites:
1. DNS is configured with proper MX record. 2. All necessary packages/ softwares are installed.

Step 1:
Configure all service to start at boot time. chkconfig sendmail on chkconfig httpd on chkconfig dovecot on

Step 2:
Configure /etc/hosts file. In this scenario /etc/hosts file should look like this:

192.168.0.14

linuxbox4

www.abc.com

Step 3: Outgoing Mail Server Configuration (Sendmail): Open /etc/mail/sendmail.mc file and change the following two lines. From:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

5 of 9

8/26/2011 9:56 PM

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apac...

http://www.howtoforge.com/squirrelmail-configuration-easy-steps-squirr...

FEATURE(`accept_unresolvable_domains')dnl

To:

dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl dnl FEATURE(`accept_unresolvable_domains')dnl

Save and exit.

- First line here enables sendmail to receive incoming emails on all installed the NICs. Otherwise mail server would only be abl to receive mails from it.

- Second line here tells sendmail, do not receive emails from mail servers whose PTR record is not configured in DNS server. This is a basic level SPAM control settings in sendmail. Generate sendmail.cf file from sendmail.mc file. m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

6 of 9

8/26/2011 9:56 PM

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apac...

http://www.howtoforge.com/squirrelmail-configuration-easy-steps-squirr...

Step 4:

Allow RELAY for trusts (organization's) IP addresses that you want to permit sending emails using this mail server. Open /etc/mail/access in this file we specify all those addresses that will be sending emails through this mail server. At the end of this file add the following line:

192.168.0 RELAY

Save and exit and convert this text database into DB format by following command. makemap hash access.db < access

Step 5:
Tell sendmail that it will be acting as a primary mail server for "abc.com" domain. We do this by adding domain name in domains in this file on separate line. Open /etc/mail/local-host-names and add "abc.com" at the end of this file. Note: A mail server can act as a primary mail server for more then one domains at the same time and as well as can act as a primary and secondary mail server for more than one domain at the same time.

/etc/mail/local-host-names. If this server is acting as a mail server for more then one domains then add names of all of th

Step 6:
All system users are mail users as well. Now create mail only users. useradd -s /usr/sbin/smrsh mailuser1 useradd -s /usr/s2n/smrsh mailuser1 Also set their passwords: passwd mailuser1 passwd mailuser2

Step 7:
Finally restart sendmail service.

7 of 9

8/26/2011 9:56 PM

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apac...

http://www.howtoforge.com/squirrelmail-configuration-easy-steps-squirr...

service sendmail restart

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apache On RedHat/CentOS/Fedora) - Page 2

SquirrelMail Configuration Easy Steps (SquirrelMai Sendmail + Apache On RedHat/CentOS/Fedora) - Page

Copyright 2009 Harshal All Rights Reserved.


0 Like 5 Send

0 add comment | view as pdf | print: this

Please do not use the comment function to ask for help! If you need help, please use our forum. Comments will be published after administrator approval.

are you serious?


Submitted by irado (not registered) on Sat, 2009-10-17 02:20. sendmail nowadays? ridiculous. sendmail is very cumbersome to play with.

reply |

Re: are you serious?


Submitted by hhh123 (not registered) on Sat, 2010-12-04 09:02. @irado :- i agree with u, i switch to postfix now

reply |

Howtos | Mini-Howtos | Forums | News | Search | Contribute | Subscription

8 of 9

8/26/2011 9:56 PM

SquirrelMail Configuration Easy Steps (SquirrelMail + Sendmail + Apac...

http://www.howtoforge.com/squirrelmail-configuration-easy-steps-squirr...

Site Map/RSS Feeds | Advertise | Contact | Disclaimer | Imprint

Copyright 2011 HowtoForge - Linux Howtos and Tutorials All Rights Reserved.

9 of 9

8/26/2011 9:56 PM

Вам также может понравиться