Sponsored Content
Top Forums Shell Programming and Scripting email to group-id is failing to receive Post 302283327 by otheus on Tuesday 3rd of February 2009 05:21:08 AM
Old 02-03-2009
You don't send email to a "group id". You must set up a forwards or alias file, create a name for that alias (usually the group name), and list each of the members in that group. In theory, you can dynamically generate that group on a daily basis. Or, you can have an email address tied to a program, which dynmacially determines the email list.

If you are using sendmail, the file you want to edit is /etc/aliases.
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can send but not receive email

Hi, One of the users in our company can send but not receive email. We are using SENDMAIL in conjunction with procmail. The funny thing is that all his sent email is in his /var/spool/mail but the email client does not pick anything up! He is using IMAP. Anyone see have any ideas? (2 Replies)
Discussion started by: mojoman
2 Replies

2. UNIX for Dummies Questions & Answers

new to ldap, send email to a ou or group, and see a list from email client

hi, i'm running openldap on ubuntu 10.04, creating new items with apache directory studio (windows version). i use the ldap just as an address book to our small office (email clients are windows live mail 2009, 2011, microsoft outlook 2007 and 2010). a. i cant see a list of the contacts,... (0 Replies)
Discussion started by: V4705
0 Replies

3. Shell Programming and Scripting

Run a script when I receive an email

Hi expert I wish to start a shell script when I receive an email. I modified the aliases file and I add this string as400nag: "|/home/nag-script/startstop/AS400-Boot.sh The solution works . When the as400nag user receive an email the /home/nag-script/startstop/AS400-Boot.sh starts .but... (3 Replies)
Discussion started by: emi65
3 Replies

4. Forum Support Area for Unregistered Users & Account Problems

Have yet to receive activation email

Good Afternoon, I attempted to register on this forum yesterday using the username 'DBirks', however I have yet to receive the required activation email. I have checked both my inbox and junk e-mail folder on my email client as well as on owa, but I have not seen any sign of it. I have... (1 Reply)
Discussion started by: Unregistered
1 Replies

5. HP-UX

Unable to receive mails from email relay server

Hi, I have reports that are generated in one server (10.61.1.108), hostname l28bi01. These reports are supposedly sent to a group of email addresses hourly via an email relay server. However, this is not happening. In sendmail.cf in bi01, the DS Smart Relay Host ip address is: ... (3 Replies)
Discussion started by: anaigini45
3 Replies

6. Shell Programming and Scripting

Check email successful sent and receive

We have a unix/linux server , that send mass email from it , the emails will pass the smtp gateway , email server and sent to the client , but sometimes the client do not receive the mail , we do not know the reason and when it will happen . We would like to have a script that check when the... (2 Replies)
Discussion started by: ust4
2 Replies
Mail::Util(3)						User Contributed Perl Documentation					     Mail::Util(3)

NAME
Mail::Util - mail utility functions INHERITANCE
Mail::Util is a Exporter SYNOPSIS
use Mail::Util qw( ... ); DESCRIPTION
This package provides several mail related utility functions. Any function required must by explicitly listed on the use line to be exported into the calling package. FUNCTIONS
mailaddress([ADDRESS]) Return a guess at the current users mail address. The user can force the return value by setting the MAILADDRESS environment variable. [2.10] You may set the ADDRESS via the parameter. WARNING: When not supplied via the environment variable, <mailaddress> looks at various configuration files and other environmental data. Although this seems to be smart behavior, this is not predictable enough (IMHO) to be used. Please set the MAILADDRESS explicitly, and do not trust on the "automatic detection", even when that produces a correct address (on the moment) example: # in your main script $ENV{MAILADDRESS} = 'me@example.com'; # everywhere else use Mail::Util 'mailaddress'; print mailaddress; # since v2.10 mailaddress "me@example.com"; maildomain() Attempt to determine the current uers mail domain string via the following methods o Look for the MAILDOMAIN enviroment variable, which can be set from outside the program. This is by far the best way to configure the domain. o Look for a sendmail.cf file and extract DH parameter o Look for a smail config file and usr the first host defined in hostname(s) o Try an SMTP connect (if Net::SMTP exists) first to mailhost then localhost o Use value from Net::Domain::domainname (if Net::Domain exists) WARNING: On modern machines, there is only one good way to provide information to this method: the first; always explicitly configure the MAILDOMAIN. example: # in your main script $ENV{MAILDOMAIN} = 'example.com'; # everywhere else use Mail::Util 'maildomain'; print maildomain; read_mbox(FILE) Read FILE, a binmail mailbox file, and return a list of references. Each reference is a reference to an array containg one message. WARNING: This method does not quote lines which accidentally also start with the message separator "From", so this implementation can be considered broken. See Mail::Box::Mbox SEE ALSO
This module is part of the MailTools distribution, http://perl.overmeer.net/mailtools/. AUTHORS
The MailTools bundle was developed by Graham Barr. Later, Mark Overmeer took over maintenance without commitment to further development. Mail::Cap by Gisle Aas <aas@oslonett.no>. Mail::Field::AddrList by Peter Orbaek <poe@cit.dk>. Mail::Mailer and Mail::Send by Tim Bunce <Tim.Bunce@ig.co.uk>. For other contributors see ChangeLog. LICENSE
Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2007 Mark Overmeer <perl@overmeer.net>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html perl v5.16.2 2012-08-29 Mail::Util(3)
All times are GMT -4. The time now is 03:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy