Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux Distribution => Distribution Specific => Topic started by: murali on February 16, 2004, 04:32:06 AM

Title: configuring sendmail
Post by: murali on February 16, 2004, 04:32:06 AM
hi guys,,
              i am new to this linux. i want to configure mail server for our
LAN, where all r windows machines except the server. every user should have his own id and all . can any one guide me how to do it?
regards,
murali.
Title: configuring sendmail
Post by: tuxi on February 16, 2004, 11:15:30 AM
Why don't you go HERE (http://www.sendmail.org) and look for the Configuration and comilation ~~
:)
Title: configuring sendmail
Post by: dragoncity99 on February 16, 2004, 12:06:48 PM
Hi,

Which linux distro r u using? Tell me ur distro:
I configured sendmail for Slackware and Fedora/RedHat.


BTW, have u read my post in this section

             "Slackware: Sendmail How To Make It Work Only On LAN?"
        http://www.linuxsolved.com/forums/viewtopic.php?t=179
Title: thanks
Post by: murali on February 17, 2004, 11:53:19 AM
hi
   thanq for ur reply i want configure mail server in redhad linux9 so pls guide how to configure mail server with all client machines are windows
regards
murali.


Quote from: "dragoncity99"
Hi,

Which linux distro r u using? Tell me ur distro:
I configured sendmail for Slackware and Fedora/RedHat.


BTW, have u read my post in this section

             "Slackware: Sendmail How To Make It Work Only On LAN?"
        http://www.linuxsolved.com/forums/viewtopic.php?t=179
Title: configuring sendmail
Post by: dragoncity99 on February 18, 2004, 04:53:11 AM
Ok Red Hat 9. I assume u have created user accounts for the windoze users in ur mail server.

1) Go to the /etc/mail directory.  Type cd /etc/mail

2) U will see a file called sendmail.mc

3) Open the file with vi and goto a line where it looks like this:
     
          DAEMON_OPTIONS('Port=smtp, Addr=127.0.0.1, MTA')
Change the value Addr from 1270.0.1 to ur server's ip address.

4) Save and exit.

5) Open a file in /etc/mail with the name "access".
U will see lines like this:
localhost               RELAY
127.0.0.1              RELAY

All u have to do is add ur server's ip address to it and followed by the keyword "RELAY"

If necessary add ur server's hostname too. For me it's richard.sybex.com                 RELAY

6) Save ur file and exit.

7) Now leave the /etc/mail directory. Type  cd /

8) Compile the /etc/mail directory by typing: make -C /etc/mail

9) To make ur configuration work, stop the sendmail service and restart it. Use the commands below:

           (i) killall -HUP sendmail
           (ii) service sendmail start
Title: configuring sendmail
Post by: murali on February 18, 2004, 08:51:59 AM
hi thanks for ur reply,
                       i got all the points u sent.what my doubt is how to create user accounts for windows,,dont think this is silly question as i am new to this linux world i dont know mcuh.and one more doubt is in windows client machine  how can i see this mails and if i want to send mails from windows what i have to do.if u can clarify these i will be thankful to u.
regards,
murali.


Quote from: "dragoncity99"
Ok Red Hat 9. I assume u have created user accounts for the windoze users in ur mail server.

1) Go to the /etc/mail directory.  Type cd /etc/mail

2) U will see a file called sendmail.mc

3) Open the file with vi and goto a line where it looks like this:
     
          DAEMON_OPTIONS('Port=smtp, Addr=127.0.0.1, MTA')
Change the value Addr from 1270.0.1 to ur server's ip address.

4) Save and exit.

5) Open a file in /etc/mail with the name "access".
U will see lines like this:
localhost               RELAY
127.0.0.1              RELAY

All u have to do is add ur server's ip address to it and followed by the keyword "RELAY"

If necessary add ur server's hostname too. For me it's richard.sybex.com                 RELAY

6) Save ur file and exit.

7) Now leave the /etc/mail directory. Type  cd /

8) Compile the /etc/mail directory by typing: make -C /etc/mail

9) To make ur configuration work, stop the sendmail service and restart it. Use the commands below:

           (i) killall -HUP sendmail
           (ii) service sendmail start
Title: configuring sendmail
Post by: dragoncity99 on February 18, 2004, 04:20:23 PM
How to create user accounts for windows?

1) Add the account in ur mail server. Type: useradd username (i.e. useradd richard)
2) Set the user a password. Type: passwd username (i.e. passwd richard)

How to see mails from windows? Good question :)
Here I will assume u use Outlook Express
1) Click menu Tools -> Accounts
2) Click Add -> Mails... on the Internet Account... dialog boxes.
3) These are the list of Internet Connection Wizard Fields and wat u should enter for ur config.

i.    Display Name = You Name
ii.   Email Address = username@ip_address_of_ur_mail_server
iii.  My Incoming Mail Server is a = ur mail server type: i assume u use POP3
iv.  Incoming Mail = your_mail_server_ip
iv.  Outgoing Mail = you_mail_server_ip
v.   Account Name = username_you_just_created_in_mail_server
vi.  Password = password_you_created_for_the_username_in_mail_server

One last thing: If u use POP3, make sure u have started the POP3 service.
How? Just type setup in the command line and go to System Services. Just check the POP3 service (ipop3....) and quit. Restart ur mail server.
Title: configuring sendmail
Post by: murali on February 21, 2004, 05:19:52 AM
hi,
   with this setup can we send mails to outside world like from my client machine to XXXXX@yahoo.com
regards,
murali.
Title: configuring sendmail
Post by: dragoncity99 on February 21, 2004, 06:18:26 AM
No, this will only make ur mail server to work on LAN only.
Title: configuring sendmail
Post by: murali on February 21, 2004, 12:25:53 PM
hi,
    then how to make my server to work for outside world also.pls tell me changes i have to made coz soon my boss will be registering a server soon.
regards,
murali.





Quote from: "dragoncity99"
No, this will only make ur mail server to work on LAN only.
Title: configuring sendmail
Post by: dragoncity99 on February 21, 2004, 01:45:29 PM
Hi Murali,

    Please to refer to this link's step by step guide. Hope it helps u

http://www.linuxhomenetworking.com/linux-hn/sendmail.htm

I haven't really try before making sendmail working on Internet honestly, but if u really have no way out, i try my best to tell u the way around sendmail's macro configurations.
Title: configuring sendmail
Post by: murali on February 22, 2004, 08:15:38 AM
hi ,
    i am disturbing u again.i tried to configure dns with the gui facility they provided with the redhat linux9, :( but its not working.can u give me the step by step procedure of configuring dns.
thankq
regards,
murali.


Quote from: "dragoncity99"
Hi Murali,

    Please to refer to this link's step by step guide. Hope it helps u

http://www.linuxhomenetworking.com/linux-hn/sendmail.htm

I haven't really try before making sendmail working on Internet honestly, but if u really have no way out, i try my best to tell u the way around sendmail's macro configurations.
Title: configuring sendmail
Post by: dragoncity99 on February 22, 2004, 06:16:17 PM
For static DNS configuration go here:

http://www.linuxhomenetworking.com/linux-hn/dns-static.htm

For dynamic DNS go here:
http://www.linuxhomenetworking.com/linux-hn/dns-dynamic.htm

Do u know how to differentiate Static and Dynamic DNS?
Title: configuring sendmail
Post by: murali on February 23, 2004, 10:03:31 AM
hi,
 i configured dns correctly now,when i gave nslookup and client machine name its giving ip adress and all,,then i configured sendmail as u suggested but when i tried to connect from client machine to server its giving error message like socket error0x800.....some thing like that. i think i made mistake some where. so please rectify me.
thanks,
regards,
murali.




ote="dragoncity99"]For static DNS configuration go here:

http://www.linuxhomenetworking.com/linux-hn/dns-static.htm

For dynamic DNS go here:
http://www.linuxhomenetworking.com/linux-hn/dns-dynamic.htm

Do u know how to differentiate Static and Dynamic DNS?[/quote]
Title: configuring sendmail
Post by: dragoncity99 on February 23, 2004, 04:53:49 PM
In this error are u able to retrieve mail?
If u can't then most probably the POP3 daemon is not running.

If this error happens when u are able to retrieve mail but unable to sendmail the most likely it's the SMTP server having problem. So, u have to double check your sendmail configuration file (sendmail.mc).

Since u have make ur DNS server working, i suggest u double check back ur sendmail.mc file.

I hope this URL helps u :

http://www.linuxhomenetworking.com/linux-hn/sendmail.htm
Title: configuring sendmail
Post by: mindfrost82 on September 15, 2004, 12:57:42 AM
I have a walkthrough to help setup Sendmail on Slackware 9.1.  I have set it up on RedHat also, just a little bit different.

http://www.mindfrost82.com/forums/showthread.php?t=647
Title: I need help
Post by: keano82 on September 23, 2004, 02:23:31 AM
i. Display Name = You Name
ii. Email Address = username@ip_address_of_ur_mail_server
iii. My Incoming Mail Server is a = ur mail server type: i assume u use POP3
iv. Incoming Mail = your_mail_server_ip
iv. Outgoing Mail = you_mail_server_ip
v. Account Name = username_you_just_created_in_mail_server
vi. Password = password_you_created_for_the_username_in_mail_server

This is account setup for windows. May I know how to create Account Name and Password in Linux mail server??
Title: configuring sendmail
Post by: dragoncity99 on September 28, 2004, 03:58:01 AM
It's a normal user account.

To add user, type:

useradd username

To set password, type:
passwd username
Title: configuring sendmail
Post by: keano82 on October 04, 2004, 05:12:43 AM
I have try the method mentioned above. But it does not work. When I connected via Mozilla Mail I get the message "connection to 192.x.x.x refused". Do I need to configure the POP3 port ?
Title: configuring sendmail
Post by: dragoncity99 on April 30, 2005, 05:53:35 PM
U can only choose POP3 or IMAP, therefore u should activate one of them.

Here, yes, POP3 port