Link to home
Start Free TrialLog in
Avatar of Insoftservice inso
Insoftservice insoFlag for India

asked on

Install Sendmail on centos

Hi,
1> Please provide me the complete steps to install and configure sendmail on centos 5.5
I have taken live ip for it. the m/c is freshly install .
2> please let me know whether free sms service can be started on such server or not.
I had tried to configure it but failed . I think i have missed to open some port but now i have formated again with below partition
3> Was it because i did not configure iptables or firewall of my m/c.
/  => 171Gb
/usr =>93gb
/tmp =>13gb
/home =>68gb
/var =>77gb
/boot=> 8.5 gb
swap =>2 gb (1 gb ram)
Avatar of arnold
arnold
Flag of United States of America image

Get webmin to manage email components for sendmail in GUI interface.

http://www.webmin.com/

I would have suggested you look at using postfix, qmail, exim, rather than sendmail.

http://www.developershome.com/sms/smsLinux.asp.

There is a resource online that can tell who the carrier is for a particular number based on the prefix.  You can then direct the email to phonenuber@carrier_appropriate_domain
Avatar of Insoftservice inso

ASKER

Hi,
thx for ur reply.

But even for qmail or postfix some port has to be open whts tht?.
If possible pls let me know the steps even to install and configure tht.

regarding the sms . it has to be attached to mobile which i don't want . I am afraid tht service would not be free of cost.
I agree with arnold on both Webmin and an alternate mail system. Take a look at this article which is a step-by-step on setting up a complete CentOS 5.5 server with Postfix (and many other services).
http://www.howtoforge.com/perfect-server-centos-5.5-x86_64-ispconfig-2

SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of madunix
madunix

look @ http://www.surveymain.com/how-to-configure-sendmail-on-centos-5-215.html/

I would also check postfix or qmail as mailserver implementation
http://www.howtoforge.com/how-to-install-qmailtoaster-centos-5.3
if you want check all links belong Centos in howtoforge
http://www.howtoforge.com/howtos/linux/centos
Hi,
thx for ur comments

Hi i tried www.howtoforge.com .@tniemetz. It successfully does the process but when i start my machine after few hours it gives me error of  filesystem "repair filesystem 1 #"

I thought i had done some mistake while doing some process so again installed fresh copy of centos with same above format with ext3 as filesystem but even today i got the same issue.

Is there something thats not mention in it.
But ya the webiste was all in one and thx again for it.
Thanx
how do you shutdown the system? Are you using previously used drives?
run fsck.ext3 and that should correct the issue.
Are you using a wd 500 GB Green hard drive?
Are there any S.M.A.R.T errors?
HI,
I shut down my system using==>  init 0
no
run fsck.ext3 but no solution
500 gb seagate
no
currently i have formated my m/c back to normal and reinstalling again except quota and postfix
Your partitioning seem out of whack.
/boot does not need more than 500MB-1GB at the most.
/ should be 5-10GB
/usr 5-10GB
/var 10-15GB
swap 2048 MB
/tmp 4GB
/home the remainder

Are you using LVM to setup the partitions or are you using raw devices: /dev/sda1 /dev/sda2 etc.?
HI arnold,
Thanx for ur quick reply.
k with partition but will home would aquire everything wont /usr would get problem with so less amount of space.
Since i am trying to make itt my personal server.
no not using lvm, raw devices /dev/sda thats it.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi ,
I tried on that part too @arnold. but of no use.
It gave me same error.
At last i am trying with other website but everyone has one or other error in there website.
Please any one has the complete steps for doing send mail pls let me know.
When you install centos, sendmail is install by default?
What you need to do is decide on the method of where you want the users recorded/manged.
Is this going to be through a mysql at which point you would need to download the sendmail+mysql: http://sourceforge.net/projects/sendmail-sql/

If you are planning on using local/virtual users in temp files, that you already have the sendmail application and only need to configure sendmail (which is not an easy task in my opinion).
http://www.sendmail.org/faq

Your question is very abstract and vague and leaves the decision on the type and the mechanics of user management to the responder.
how many users/mailbox are you planning on having, how many domains, will the users be accessing your server via IMAP, POP, secure IMAP,POP, etc.
HI,
extremely sorry for so much delay, I had been suffering from fever.
@arnold as per mention in ur first comment i had tried for post fix and on other m/c squirrel mail.
But it failed and gave me dovecot issue.
Ya i am trying for 2 domains, 5 account on each. and i would use quota for them.
Which one is better IMAP,POP,secure IMap ,pop, which would be even helpful if i would try for sms gateway in future  not currently.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi,
i Have successfully run postfix without any error.
thx to arnold.
I get squirel prompt. i login in but when i try to sent an email with cc of my  local domain email id it goes to only local email id only and not to other like xyz@yahoo.com
Is it issue of domain. that currently i have not set (i.e buyed the domain name). or since i have not activated this dns with live ip.
Is live ip required for sendmail. some one gave me solution of relay forwarding. whts tht?
And its only configured to one domain only, how to setup for mutliple domains
Witingthe postfix maillog, what is happening to the email message addressed to xyz@yahoo.com?

Is your server trying to deliver the message and fails (500/400) error from the yahoo server, or is your email server unable to establish an external connection?  You could define a transport rule that would send all outgoing emails to your ISP's mail server (Smart Host).

The configuration as you describe it is fine.  postfix has a single local/virtual domain.
It will try to deliver all emails by first deciding whether it is local or remote.
For remote it would do a DNS lookup for MX/A record of the recipient domain and then try establishing an SMTP session to that server.

Hopefully you are not using a @yahoo.com email address for the sender. Do you get a bounce back from the email that is addressed to @yahoo.com?
hi,
no, i don't get any 500/400 error.
wht i did was i just sent mail thru xyz@abc.com  with
to: abc@yahoo.com,abc@gmail.com
cc: xyz@abc.com
where abc@yahoo.com,abc@gmail.com are my personal accounts
but i don't receive any of the mail in gmail and yahoo. but ya i received it in xyz@abc.com
ya,its local only setup on local and still not used 'live ip' for it.

1> Any thing more has to be done?
2> You mean to say that i can only use only one domain for one postfix sever right,is there any setting has to be done for multiple domains too?
3>No, i don't get any bounce back mails.
4>How to check whether my email server is unable to make external connection?
5>Some one told me regarding relay which i had configured but it also gave me same result.

Thanx for ur help
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,
Currently i am getting this error
.
What changes i did was i changed inet_interface = ww.abc.com instead of localhost
and removed locathost from hosts.conf file

Error connecting to IMAP server: localhost.
0 :

I have attached the previous mailog where localhost were present
Aug  1 00:58:05 www postfix/cleanup[7041]: 3149C87005A: message-id=<20100731192805.3149C87005A@mail.xyz.com>
Aug  1 00:58:05 www postfix/bounce[7043]: C08A987006A: sender non-delivery notification: 3149C87005A
Aug  1 00:58:05 www postfix/qmgr[7033]: 3149C87005A: from=<>, size=3180, nrcpt=1 (queue active)
Aug  1 00:58:05 www postfix/smtp[7042]: 3149C87005A: to=<abc@localhost.xyz.com>, relay=none, delay=0.18, delays=0.01/0/0.17/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost.xyz.com type=A: Host not found)
Aug  1 00:58:05 www postfix/qmgr[7033]: 3149C87005A: removed
Aug  1 00:59:18 www postfix/postfix-script: stopping the Postfix mail system
Aug  1 00:59:18 www postfix/master[7030]: terminating on signal 15
Aug  1 00:59:19 www postfix/postfix-script: starting the Postfix mail system
Aug  1 00:59:19 www postfix/master[7101]: daemon started -- version 2.3.3, configuration /etc/postfix
Aug  1 00:59:37 www dovecot: Killed with signal 15
Aug  1 00:59:37 www dovecot: Dovecot v1.0.7 starting up
Aug  1 01:01:40 www dovecot: imap-login: Login: user=<abc>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Aug  1 01:01:40 www dovecot: IMAP(abc): Disconnected: Logged out
Aug  1 01:01:41 www dovecot: imap-login: Login: user=<abc>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Aug  1 01:01:41 www dovecot: IMAP(abc): Disconnected: Logged out
Aug  1 01:01:41 www dovecot: imap-login: Login: user=<abc>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Aug  1 01:01:41 www dovecot: IMAP(abc): Disconnected: Logged out
Aug  1 01:01:55 www dovecot: imap-login: Login: user=<abc>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Aug  1 01:01:55 www dovecot: IMAP(abc): Disconnected: Logged out
Aug  1 01:01:55 www dovecot: imap-login: Login: user=<abc>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Aug  1 01:01:55 www dovecot: IMAP(abc): Disconnected: Logged out
Aug  1 01:02:08 www dovecot: imap-login: Login: user=<abc>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Aug  1 01:02:08 www postfix/pickup[7103]: DCC5C87005D: uid=48 from=<abc@localhost>

Open in new window

This is your error:
dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost.xyz.com type=A: Host not found)
When the recipients domain is unknown, postfix uses dns to locate the server (MX/A) to which it needs to connect to transmit the message to reach the recipient.

You need to define localhost.xyz.com as local (mydestination) /etc/postfix/main.cf
mydestination =localhost.xyz.com, $myhostname, localhost.$mydomain

Note this defines these hostnames as local.  If you use recipient_maps and virtual domains, you should not add these here.
hi,
These are the link provided in mail log file what i have received when the mail had been forwarded to yahoo and gmail account.

http://help.yahoo.com/l/us/yahoo/mail/postmaster/errors/550-bl21.html;_ylt=Ake70nn10l9th7Nv40ehk4glJHdG
http://mail.google.com/support/bin/answer.py?answer=10336

What i understood is that my post fix is working absolutely fine but in
postfix/main.cf
i have given
mynetworks 'local ip'
i tried to give even my live ip but result was same.
so is the issue now with my ISP who have not enabled my relay service or i have to do something to enable from myside.
and currently its working only for one domain how to do it for multiple domain on same m/c
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can also configure the mail server for all your outgoing emails to go through your ISP's mailservers.
By defining the relayhost.
http://www.postfix.org/INSTALL.html
Not sure whether defining a transport
* smtp:ispmailserver

works.
Hi @arnold,
thx for ur comments i would have a look at it. First i would just check from My 'ISP' whether they have on provide proper live ip with all its port open to internet.
Hi,
I discussed this matter with my ISP .According to them i have to do
'PORT FORWARDING' in ur router.
Then it will work.
But i will even do as mention in ur above comments
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
HI arnold,
 thx for ur help actually while scanning to my previous mail i found that il had reached mail in my yahoo account .
so, its definitely iptables issue. I would do the steps again.
Thx for ur help