9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
2. UNIX for Advanced & Expert Users
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies
3. Shell Programming and Scripting
I have written a number of shell scripts which I have added to cron to run on an Apple Xserve running MAc OS Server 10.4.11.
Recently I configured postfix to use one of my company's email servers as a relay so that it can send out statistics about the number of jobs my shell scripts have... (2 Replies)
Discussion started by: buzzs4w
2 Replies
4. Shell Programming and Scripting
Hi
I want to stop a process using a shell script. how do i do that?
ie, to simulate ps -ef|grep Process name
get the process id and kill -9 process id
plz help... (4 Replies)
Discussion started by: gopsman
4 Replies
5. Shell Programming and Scripting
Hi
Is it possible to stop a command executing after certain time?
I have this command say prstat which keeps on giving the values etc of the processes after every 1 sec(refreshes the screen)
What I want is just stop the execution after first screen
Since I have written this command in shell... (3 Replies)
Discussion started by: superprg
3 Replies
6. UNIX for Advanced & Expert Users
hi,
Can any plz tell what is the command for stopping a processor? suppose a system is accessing 10 processors and we want to stop the 3rd & 6th processor then whats the command in Unix?
thank u (2 Replies)
Discussion started by: nm_virtual
2 Replies
7. Shell Programming and Scripting
i want to stop a script from running after one minute, using the sleep command, and then kill the process. anyhelp with this. (2 Replies)
Discussion started by: AtomJ22
2 Replies
8. UNIX for Dummies Questions & Answers
Fedora C2
Apcache 2.0
Right now my setup consists of a cable modem which connects to a wireless router (Linksys WRT54G), which I have port forward all port 80 requests to my Linux (Fedora) box.
I want to block a certain ip address that has been in my /etc/httpd/logs/access_log file with... (2 Replies)
Discussion started by: lawadm1
2 Replies
9. UNIX for Advanced & Expert Users
Im running a solaris 9 system and keep getting this message: Request to LXKF894CB (unknown printer) from zion.
This happen because there was a mis configured printer and a job was submitted to it. I fix the printer issue but this message keeps repeating and the PID keeps going up. How can i... (5 Replies)
Discussion started by: meyersp
5 Replies
PAM_MAIL(8) Linux-PAM Manual PAM_MAIL(8)
NAME
pam_mail - Inform about available mail
SYNOPSIS
pam_mail.so [close] [debug] [dir=maildir] [empty] [hash=count] [noenv] [nopen] [quiet] [standard]
DESCRIPTION
The pam_mail PAM module provides the "you have new mail" service to the user. It can be plugged into any application that has credential or
session hooks. It gives a single message indicating the newness of any mail it finds in the user's mail folder. This module also sets the
PAM environment variable, MAIL, to the user's mail directory.
If the mail spool file (be it /var/mail/$USER or a pathname given with the dir= parameter) is a directory then pam_mail assumes it is in
the Maildir format.
OPTIONS
close
Indicate if the user has any mail also on logout.
debug
Print debug information.
dir=maildir
Look for the users' mail in an alternative location defined by maildir/<login>. The default location for mail is /var/mail/<login>.
Note, if the supplied maildir is prefixed by a '~', the directory is interpreted as indicating a file in the user's home directory.
empty
Also print message if user has no mail.
hash=count
Mail directory hash depth. For example, a hashcount of 2 would make the mail file be /var/spool/mail/u/s/user.
noenv
Do not set the MAIL environment variable.
nopen
Don't print any mail information on login. This flag is useful to get the MAIL environment variable set, but to not display any
information about it.
quiet
Only report when there is new mail.
standard
Old style "You have..." format which doesn't show the mail spool being used. This also implies "empty".
MODULE TYPES PROVIDED
The session and auth (on establishment and deletion of credentials) module types are provided.
RETURN VALUES
PAM_BUF_ERR
Memory buffer error.
PAM_SERVICE_ERR
Badly formed arguments.
PAM_SUCCESS
Success.
PAM_USER_UNKNOWN
User not known.
EXAMPLES
Add the following line to /etc/pam.d/login to indicate that the user has new mail when they login to the system.
session optional pam_mail.so standard
SEE ALSO
pam.conf(5), pam.d(5), pam(8)
AUTHOR
pam_mail was written by Andrew G. Morgan <morgan@kernel.org>.
Linux-PAM Manual 09/19/2013 PAM_MAIL(8)