hey friends,
I have installed sendmail or it would rather say it comes default with the centos. I am using Centos4.0 and I am trying to configure sendmail with virtual users.
I have created few users for my domain. My internal domain (example.com) is different from my isp domain (example1.com).
The problem I am facing is that if the user1@example1.com sends the mail to the user2@example1.com then the mails should not go to the ISP rather the server running sendmail should send it to the mailbox of the user2@example1.com but rather it is sending it to the ISP account and from there it is getting redirected to ther user2 mailbox.
I have configured the virtualusertable like this
user1@example1.com user1(local account) user2@example.com user2(local account)
makemap hash virtualusertable.db < virtualusertable
service sendmail reload/restart.
Now if the mail for the user2 from the user1 the sendmail should forward it to the user2 mailbox but this is not happening rather sendmail is forwarding it to the ISP server and from there it is gettting move to the user2 mailbox.
Second problem I am facing is that how do I configured sendmail to the send the credentials of each user to the ISP account. For example if user1 wants to send the mail to the Internet the sendmail server should connect to ther ISP server with this user credentails (username and password ) and if user2 wants to send the mail to ther Internet then the sendmail should connect to the ISP server with the user2 credentails ( username and password).
I have about 25 user accounts and I using sendmail 8.1.13 version.
Please let me know if you need any further inputs.
Thanks & Regards
Ankush Grover
ankush grover wrote:
hey friends,
I have installed sendmail or it would rather say it comes default with the centos. I am using Centos4.0
sendmail with centos 4.0 has security issues, you should upgrade that machine right away.
also, why are you using centos 4.0 in the first place ? what keeps you from upgrading that machine ?
- K
On 7/17/06, Karanbir Singh mail-lists@karan.org wrote:
ankush grover wrote:
hey friends,
I have installed sendmail or it would rather say it comes default with the centos. I am using Centos4.0
sendmail with centos 4.0 has security issues, you should upgrade that machine right away.
also, why are you using centos 4.0 in the first place ? what keeps you from upgrading that machine ?
hey,
Thanks for the reply. This is just the testing machine and the mail server will be either on the latest version of Centos or Fedora. But first I need to understand the concepts and configuration of Sendmail.
Thanks & Regards
Ankush Grover
On Monday 17 July 2006 12:58, ankush grover wrote:
On 7/17/06, Karanbir Singh mail-lists@karan.org wrote:
ankush grover wrote:
hey friends,
I have installed sendmail or it would rather say it comes default with the centos. I am using Centos4.0
sendmail with centos 4.0 has security issues, you should upgrade that machine right away.
also, why are you using centos 4.0 in the first place ? what keeps you from upgrading that machine ?
hey,
Thanks for the reply. This is just the testing machine and the mail server will be either on the latest version of Centos or Fedora. But first I need to understand the concepts and configuration of Sendmail.
Thanks & Regards
Ankush Grover
Go for Centos if oyu want to build a server as fedora is a test bed ..
and why learn sendmail when postfix is 80 times easier.
Later
Go for Centos if oyu want to build a server as fedora is a test bed ..
I will
and why learn sendmail when postfix is 80 times easier.
I know postfix but want to learn sendmail.
Regards
Ankush Grover
-- Charles Lacroix, Administrateur UNIX. Service des télécommunications et des technologies Cégep de Sainte-Foy (418) 659-6600 # 4266 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, 2006-07-17 at 22:28 +0530, ankush grover wrote:
On 7/17/06, Karanbir Singh mail-lists@karan.org wrote: ankush grover wrote: ><snip>
Thanks for the reply. This is just the testing machine and the mail server will be either on the latest version of Centos or Fedora. But first I need to understand the concepts and configuration of Sendmail.
A friendly suggestion then. Read first. Sendmail is (overly) complex because it can do so much. For simpler tasks, one could say it is overkill. If your 25 users are waiting for you to do something, better go the fast way first and learn later.
Are you familiar with the m4 macro language? If not... no problem. When I first worked Sendmail, we used it directly. TG I never had to learn that much. But I mention it so you can go to /etc/mail and look at the *.cf files generated from the *.mc files. And you see the commonly(?) touched things. There are *tons* (maybe metric tons) of other things you don't see that have an effect. Get hold of a good Sendmail admin guide.
Thanks & Regards
Ankush Grover
<snip sig stuff>
BTW, as suggested by another, last time I set up mail in my LAN previous incarnation, I did postfix. Easy, reliable, flexible. I second the recommendation until you have time to become more familiar with Sendmail.
GL to you.
ankush grover schrieb:
hey friends,
I have installed sendmail or it would rather say it comes default with the centos. I am using Centos4.0 and I am trying to configure sendmail with virtual users.
I have created few users for my domain. My internal domain (example.com) is different from my isp domain (example1.com).
The problem I am facing is that if the user1@example1.com sends the mail to the user2@example1.com then the mails should not go to the ISP rather the server running sendmail should send it to the mailbox of the user2@example1.com but rather it is sending it to the ISP account and from there it is getting redirected to ther user2 mailbox.
Mail coming from your ISP for domain exampl1.com isn't rejected? Can it be that you fetchmail the mail? I ask because I bet you did not configure example1.com to be in class{w} (means treated to be local). Do so by adding that domain to /etc/mail/local-host-names. That is a plaintext flat file. Sendmail daemon restart is necessary.
I have configured the virtualusertable like this
user1@example1.com user1(local account) user2@example.com user2(local account)
makemap hash virtualusertable.db < virtualusertable
service sendmail reload/restart.
If you "service sendmail restart", then changes to map files are detected automatically and a "make -C /etc/mail" is run automatically to rebuild the hashed map files, the .cf files to if changes to .mc files happened.
Now if the mail for the user2 from the user1 the sendmail should forward it to the user2 mailbox but this is not happening rather sendmail is forwarding it to the ISP server and from there it is gettting move to the user2 mailbox.
For local domains neither the smarthost nor mailertable will be used.
echo '$=w' | /usr/lib/sendmail -bt
Prints you out all class{w} domains.
Second problem I am facing is that how do I configured sendmail to the send the credentials of each user to the ISP account. For example if user1 wants to send the mail to the Internet the sendmail server should connect to ther ISP server with this user credentails (username and password ) and if user2 wants to send the mail to ther Internet then the sendmail should connect to the ISP server with the user2 credentails ( username and password).
http://www.sendmail.org/~ca/email/sm-812.html#812AUTH
It isn't possible to define multiple users for a single relay host target. (With Postfix you would require release 2.3)
For different relay selections based on the sender there is
http://anfi.homeunix.net/sendmail/smarttab.html
I have about 25 user accounts and I using sendmail 8.1.13 version.
Please let me know if you need any further inputs.
Thanks & Regards
Ankush Grover
Alexander
Mail coming from your ISP for domain exampl1.com isn't rejected? Can it be that you fetchmail the mail? I ask because I bet you did not configure example1.com to be in class{w} (means treated to be local). Do so by adding that domain to /etc/mail/local-host-names. That is a plaintext flat file. Sendmail daemon restart is necessary.
echo '$=w' | /usr/lib/sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address>
cluster1
[192.168.1.125] localhost.localdomain localhost example1.com
the example1.com is there.
The logs (/var/log/maillog) shows
Jul 18 15:38:00 cluster1 sendmail[6459]: k6IA80Op006455: to=< ank@example1.com>, ctladdr=ank@example1.com (512/513), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30776, dsn=2.0.0, stat=Sent
But the user ank is not able to receive the mails.
/etc/mail/local-host-names contains these entries
localhost localhost.localdomain example1.com
Second problem I am facing is that how do I configured sendmail to the
send the credentials of each user to the ISP account. For example if user1 wants to send the mail to the Internet the sendmail server should connect to ther ISP server with this user credentails (username and password ) and if user2 wants to send the mail to ther Internet then the sendmail should connect to the ISP server with the user2 credentails ( username and password).
http://www.sendmail.org/~ca/email/sm-812.html#812AUTH
It isn't possible to define multiple users for a single relay host target. (With Postfix you would require release 2.3)
For different relay selections based on the sender there is
http://anfi.homeunix.net/sendmail/smarttab.html
I will go through it.
Thanks & Regards
Ankush Grover
ankush grover wrote:
I just love HTML mails. They make everything so unreadable.
The logs (/var/log/maillog) shows Jul 18 15:38:00 cluster1 sendmail[6459]: k6IA80Op006455: to=<[6]ank@example1.com>, ctladdr=<[7] ank@example1.com> (512/513), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30776, dsn=2.0.0, stat=Sent
This means that the mail has been sent *locally* to the user ank@example1.com - so this is not a sendmail problem anymore.
But the user ank is not able to receive the mails.
What are your procmail rules? Are you sure that you're looking for those mails in the correct place? Do you have some sort of .forward in your $HOME?
Ralph