Sponsored Content
Full Discussion: blocking mail using sendmail
Top Forums UNIX for Dummies Questions & Answers blocking mail using sendmail Post 8308 by Neo on Tuesday 9th of October 2001 09:02:26 PM
Old 10-09-2001
hash requires the Berkeley DB library.....

Quote:
NAME
makemap - create database maps for sendmail

SYNOPSIS
makemap [-C file] [-N] [-c cachesize] [-d] [-e] [-f] [-l]
[-o] [-r] [-s] [-u] [-v] maptype mapnam

DESCRIPTION
Makemap creates the database maps used by the keyed map
lookups in sendmail(8). It reads input from the standard
input and outputs them to the indicated mapname.

Depending on how it is compiled, makemap handles up to
three different database formats, selected using the map-
type parameter. They may be

dbm DBM format maps. This requires the ndbm(3)
library.

btree B-Tree format maps. This requires the new Berkeley
DB library.

hash Hash format maps. This also requires the Berkeley
DB library.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sendmail - forwarding mail

quick question. I have a webserver that has various scripts for user registration and ect on it. I want to post (mail) these to myself - however I am a bit stuck on how to configure sendmail to do this. The hosting partner that I use has provided me with the use of their relay to send on the... (1 Reply)
Discussion started by: warrend
1 Replies

2. Email Antispam Techniques and Email Filtering

Sendmail Access DB TLD Blocking ....

Now this is a bit tricky, but works great if you can decide which Top Level Domains or TLDs you want to receive mail We are getting so much spam from countries we never receive useful mail, I've been experimenting with blocking entire TLDs using sendmail access_db as an antispam technique. ... (0 Replies)
Discussion started by: Neo
0 Replies

3. UNIX for Advanced & Expert Users

blocking sendmail from domain

hi i edited the /etc/mail/access files with the line "yahoo.com REJECT", afterwhich i cannot send out files to the yahoo.com domain. :mad: can someone advise on how to go about configuring such that i am able to send mail out to yahoo.com BUT block INCOMING mail from yahoo.com :confused: i... (0 Replies)
Discussion started by: legato
0 Replies

4. Solaris

sendmail mail server help

Hello guys, Am trying to enable/start sendmail in Solaris 10. I tried using scvadm and also did it using the /etc/init.d/sendmail restart but no effect. Just returns to the prompt. No errors nothing. I checked if it is running using ps -eaf | grep sendmail, not running :( . I checked the logs... (9 Replies)
Discussion started by: rcmrulzz
9 Replies

5. Linux

Restrict mail from Sendmail

Hello All, i have configured sendmail and trying to set a limit on mail Ex: If i have send any mail to a email-if that doesn'e exists, i want that after trying for 3 days it should stops sending that mail to user and send a mail to the sender that " sending mail failed , any messaged... (1 Reply)
Discussion started by: saurabh84g
1 Replies

6. UNIX for Advanced & Expert Users

Sendmail help for nobody mail box

Hi there all, I got a small tiny problem of not remambering how this worked. I get when I mail to a non existing mailbox I get a return failer to nobody@domain.bla wich will end up in root@domain.bla What I want is to get it to /dev/NULL so I dont get a messege when I mailed to a non existing... (0 Replies)
Discussion started by: draco
0 Replies

7. Shell Programming and Scripting

mail or sendmail ?

1. I need to send emails using a shell script on linux. I want to use the most widespread method (the preferred method). Is one considered deprecated in favor of the other? Which, mail or sendmail ? 2. Now, without trying to favor mail in the first question: How can I include a From: mail... (1 Reply)
Discussion started by: limmer
1 Replies

8. Shell Programming and Scripting

how to know the mail sent status using sendmail

Hi, I am using sendmail command to send mail This is the command i am using cat <filename> | /usr/lib/sendmail -v <emailid> I will put the contents in the file as body of the email I want the subject also to be printed in the email I want to know whether email has been successfully... (1 Reply)
Discussion started by: trichyselva
1 Replies

9. UNIX for Dummies Questions & Answers

Does the mail command use sendmail?

The question is, Does the mail comman actually send using sendmail or something else? So I am trying to test if sendmail is set up. I used... cat testemail.txt | mail -s "test mail" myemail@test.com I used my email though I didn't get an error, but didn't get the email either. ... (2 Replies)
Discussion started by: wondernate
2 Replies

10. Proxy Server

How to send mail (sendmail) for php mail()?

PHP mail() function doesn't work. Nor does sendmail: loaded system configuration file /etc/msmtprc ignoring user configuration file /home/xi/.msmtprc: No such file or directory falling back to default account using account default from /etc/msmtprc host = xsi port = 25 proxy host = (not... (1 Reply)
Discussion started by: Xcislav
1 Replies
makemap(1M)                                               System Administration Commands                                               makemap(1M)

NAME
makemap - create database maps for sendmail SYNOPSIS
makemap [-N] [-d] [-f] [-o] [-r] [-s] [-v] [-C file] [-c cachesize] [-D commentchar] [-e] [-l] [-t delim] [-u] mantype mapname DESCRIPTION
makemap creates the database maps used by the keyed map lookups in sendmail(1M). makemap reads from the standard input and outputs to the specified mapname. In all cases, makemap reads lines from the standard input consisting of two words separated by white space. The first is the database key, the second is the value. The value may contain %n strings to indicated parameter substitution. Literal percents should be doubled (%%). Blank lines and lines beginning with # are ignored. makemap handles three different database formats. Database format is selected using the maptype parameter. See OPERANDS. OPTIONS
The following options are supported: -c cachesize Use the specified hash and B-Tree cache size (cachesize). -C file Use the specified sendmail configuration file (file) for looking up the TrustedUser option. -d Allow duplicate keys in the map. This is only allowed on B-Tree format maps. If two identical keys are read, both be inserted into the map. -D commentchar Use the specified character to indicate a comment (which is ignored) instead of the default of '#'. -e Allow empty value (right hand side). -f Normally, all upper case letters in the key are folded to lower case. This flag disables that behavior. This is intended to mesh with the -f flag in the K line in sendmail.cf. The value is never case folded. -l List supported map types. -N Include the null byte that terminates strings in the map. This must match the -N flag in the K line in sendmail.cf -o Append to an old file. This allows you to augment an existing file. -r Allow replacement of existing keys. Normally makemap complains if you repeat a key, and does not do the insert. -s Ignore safety checks on maps being created. This includes checking for hard or symbolic links in world writable directo- ries. -t delim Use the specified delimiter (delim) instead of white space. -u Dump (unmap) the content of the database to standard output. -v Verbosely print what it is doing. OPERANDS
The following operands are supported: mapname File name of the database map being created. maptype Specifies the database format. The following maptype parameters are available: dbm Specifies DBM format maps. btree Specifies B-Tree format maps. hash Specifies hash format maps. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsndmu | +-----------------------------+-----------------------------+ SEE ALSO
editmap(1M), sendmail(1M), attributes(5) SunOS 5.10 29 Jun 2004 makemap(1M)
All times are GMT -4. The time now is 02:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy