Operating System - HP-UX
1831218 Members
2787 Online
110021 Solutions
New Discussion

Sendmail catch_all_configuration

 
ShivKumar_1
Frequent Advisor

Sendmail catch_all_configuration

Hi Experts

I had a question about sendmail.

Im trying it at my workplace and want to have a catch_all email configured in that ie , for Eg: if some one emails at Len@abc.com(which is not existing email) then that email should get forwarded/bounced to , mailadmin@abc.com .

Whats the way to setup POP accounts , ie you can pop to any client like Outlook all your mails frm server?

Is this possible in Sendmail? Pl let me know.




6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: Sendmail catch_all_configuration

You are talking about 2 different functions here.

Sendmail does not do POP. Sendmail just sends and receives mail and puts it in a mailbox. If you want to get you unix mail via a POP3 client, then you'll have to install a POP3 server.

I use QPOPPER for this on a couple of servers. It works well and is fairly easy to set up. Qpopper, with all appropriate docs, is available at: http://www.eudora.com/products/unsupported/qpopper/index.html

As for your sendmail issue: I'm not sure how you do that.
Raj D.
Honored Contributor

Re: Sendmail catch_all_configuration

Hi Shiv ,

Here is few docs that can help you understanding and configuring :

'Sendmail 8.X Cookbook' :

http://www1.itrc.hp.com/service/iv/docDisplay.do?docId=prodITRC/DE_SW_UX_sendmail_EN_01_E/sendmail.doc

DOC:
http://docs.hp.com/en/5991-0707/ch02s07.html

Also chek this link:
http://www1.itrc.hp.com/service/iv/node.do?node=prodITRC%2
FWW_Start%2FN1%7C20%7C5%7C3%7C12%7C2

Hope this can help,

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Geoff Wild
Honored Contributor

Re: Sendmail catch_all_configuration

catchall:

in /etc/mail/virtusertable add: @yourdomain.com emailusername

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: Sendmail catch_all_configuration

Oops - forgot - after you are done:

makemap hash /etc/mail/virtusertable
then restart sendmail.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
jerry1
Super Advisor

Re: Sendmail catch_all_configuration

You can do just about anything you want with
sendmail when it comes to SMTP.

Download the latest sendmail from sendmail.org
and read about "mailertable" and "virtualusers" dbm
files or just use HP's sendmail in /usr/newconfig/etc/mail/cf/cf
to build a new sendmail.cf file

m4 ../m4/cf.m4 generic-hpux10.mc >sendmail.cf.new


I have my sendmail servers setup to
translate address user@a.com to go to
user@b.com with virtualusers table and
anything matching @domain1.com or @domain2.com to
go to another relay.

exp:

You need to have in the generic-hpux10.mc or
other .mc file name:

FEATURE(virtusertable)dnl

and/or

FEATURE(mailertable)dnl

These will build the rules into your new sendmail.cf file

To build the dbm file virtusertable.
Create a file called virtusertable and
put recipient addresses you want to translate:

Len@abc.com mailadmin@abc.com


Run:

makemap dbm /etc/mail/virtusertable ail/virtusertable

This will create virtusertable.dir and virtusertable.pag that sendmail uses.

When sending to address Len@abc.com.
The new recipient address will be mailadmin@abc.com.
You may or may not need to edit sendmail.cw
depending on the address.


For mailertable dbm that does re-routing.

Do the same as above with file name as
is for FEATURE above mailertable.

And put in /etc/mail/mailertable file entries
like:

domain1.com smtp:someotherrelay.domain.com
.domain1.com smtp:someotherrelay.domain.com
sub.domain1.com smtp:someotherrelay.domain.com
domain2.com smtp:[128.166.1.2]

Build a new sendmail.cf with the generic .mc
file and do a diff with /etc/mail/sendmail.cf
to see what if any changes there are.
Also check the header in the sendmail.cf
which will show you what features, etc...
are built into the sendmail.cf.

There are a lot of other features and anyone
one of them, with or without them added, can
mess up your whole day if you don't
understand how they all interact with each
other. Be careful with sendmail.cw.
ShivKumar_1
Frequent Advisor

Re: Sendmail catch_all_configuration

Hi
When I run the command

makemap dbm /etc/mail/virtusertable ail/virtusertable

I get the following error

makemap dbm /etc/mail/virtualusertable < /etc/mail/voi fi.txt
makemap: Need to recompile with -DNDBM for dbm support
[root@voifimatchdb mail]# makemap -dndbm /etc/mail/virtualusertable < /etc/mail /virtualuser
makemap: invalid option -- n