Jump to content

Validrcpt entry in hero honda: Difference between revisions

From TetraWiki
Amit (talk | contribs)
Created page with "category:Heromotocorp == How to make entry in validrcpt Hero Honda(qmail) == Note:- email id should contain small letters ---- '''Go to this location''' #cd /var/qmail/co..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[category:Heromotocorp]]
[[category:Heromotocorp]]


== How to make entry in validrcpt Hero Honda(qmail) ==
 
Note:- email id should contain small letters
Note:- email id should contain small letters
----
'''Go to this location'''
#cd /var/qmail/control/
make backup of file validrcptto.txt
#cp validrcptto.txt validrcptto.txt.DD.MM.YYYY
'''Now Open validrcptto.txt file'''


#vi validrcptto.txt
== How to make entry in validrcpt Hero Honda(qmail) by Web Access ==


move to the end of file
To have access of Hero Honda User's email creation Link we have to disable .htaccess file from server


enter email_id here
'''Go to this location'''
#cd /var/www/html/hh


#email_id@heromotocorp.com
Now disable the htaccess file
#mv .htaccess htaccess


wq! (save the file)
Now open this Link[http://smtp1.heromotocorp.com/hh]


'''To check entry of email_id'''
'''There are Two Options  ADD and DELETE '''  
#grep email_id@heromotocorp.com validrcptto.txt


Note:- when we click on Add or DELETE it will automatically reflect the changes in validrcptto.txt and validrcptto.cdb file over the server.


'''Make entry in Validrcptto Database File'''


run this command


#cdbmake-12 validrcptto.cdb validrcptto.tmp < validrcptto.txt
'''Once you Done enable the httaccess'''
#cd /var/www/html/hh
#mv htaccess .htaccess


'''To check entry of email_id in cdb file'''
== Word of Caution ==
 
#strings validrcptto.cdb | grep "emai_id@heromotocorp.com"
this will show the result


Note:- To test send email from other domain and watch the logs
Ensure that files
/var/qmail/control/validrcpt.txt
/var/qmail/control/validrcpt.cdb


are writable by apache users . Means the files should have '''777''' rights .
Else these files will not get updated and the created user will not reflect .


== How to make entry in validrcpt Hero Honda(qmail) by Web Access ==


To have access of Hero Honda User's email creation Link we have to disable .htaccess file from server
==Testing==


'''Go to this location'''
To check entry of email_id
#cd /var/www/html/hh


Now disable the htaccess file
grep email_id@heromotocorp.com validrcptto.txt
#mv .htaccess htaccess


Now open this Link[http://smtp1.heromotocorp.com/hh]
To check entry of email_id in cdb file


'''There are Two Options ADD and DELETE '''
  strings validrcptto.cdb | grep "emai_id@heromotocorp.com"


Note:- when we click on Add or DELETE it will automatically reflect the changes in validrcptto.txt and validrcptto.cdb file over the server.
this will show the result


'''Once you Done enable the httaccess'''
Note:- To test send email from other domain and watch the logs
#cd /var/www/html/hh
#mv htaccess .htaccess

Latest revision as of 14:33, 6 February 2015


Note:- email id should contain small letters

How to make entry in validrcpt Hero Honda(qmail) by Web Access[edit]

To have access of Hero Honda User's email creation Link we have to disable .htaccess file from server

Go to this location

  1. cd /var/www/html/hh

Now disable the htaccess file

  1. mv .htaccess htaccess

Now open this Link[1]

There are Two Options ADD and DELETE

Note:- when we click on Add or DELETE it will automatically reflect the changes in validrcptto.txt and validrcptto.cdb file over the server.


Once you Done enable the httaccess

  1. cd /var/www/html/hh
  2. mv htaccess .htaccess

Word of Caution[edit]

Ensure that files

/var/qmail/control/validrcpt.txt 
/var/qmail/control/validrcpt.cdb

are writable by apache users . Means the files should have 777 rights . Else these files will not get updated and the created user will not reflect .


Testing[edit]

To check entry of email_id

grep email_id@heromotocorp.com validrcptto.txt

To check entry of email_id in cdb file

strings validrcptto.cdb | grep "emai_id@heromotocorp.com" 

this will show the result

Note:- To test send email from other domain and watch the logs