I am using a script to create a random password for a user.
The file looks like
Passwords are openssl passwd hashed. I have an own file where the password is written in cleartext.
Now i want to send an E-Mail to the users with the new password.
I have a file (maillist.txt) with
Now i want to generate an E-Mail to user1.
This should generate an E-Mail to mail@domain1.tld, containing the username (user1) and the password (password1). Automatic for each user.
I want to do it with mailx.
Can you please help me?
Regards
Manu
Moderator's Comments:
Please use CODE tags as required by forum rules!
Last edited by Manu_H; 01-06-2017 at 01:09 PM..
Reason: Added CODE tags.
Hello people
I need to find a way to generate a file that contains the names of all *.jpg files that were generated after a specific date
The search should start in my current folder and recursively search inner folders
It would be best to list the file names one below the other in the output... (3 Replies)
Hi Expert,
I have some confusing to generate report from the log file as shown below:
filename :test1.log
start_time date end_time number code
P 000029.621 20070823 000029 12134567890 111111111111 00 0 000 003... (4 Replies)
Im trying to come up with a way to automate moving logs as they generate from one server to another. Anyone have script or idea how most simply to get it done ? want to get this working so dont have to monitor and move these logs during the evening. Thanks for any ideas
-Vinman (2 Replies)
Is there a tool that can diff a directory and generate a change list of files in that directory based on a previous snapshot on the directory?
For example
/etc/a.txt:changed
/etc/b.txt:removed
/etc/c.txt:added
Thanks! (1 Reply)
Hi, I'm newbie in Bash scripting.
Here is scenario I've a file which containslist of 100 mailgroup and in a directory i have 100 files with each group's respective mail addresses.
I'd like to make one CSV file with this information as follows.
consolidated files with
mailid,groupname.
... (7 Replies)
I copied all JPEGs from my laptop to an external drive using
find . -name "*.jpg" -exec cp '{}' ./media/Backup/pictures \;
And then deleted all of them from my laptop.
Now, I realize that I need the folder path of all the original JPEGs as the path has the important information.
I dont... (1 Reply)
Hi.
I'm new on this forum and I need if possible someone to help me with one script.
The script should act like this:
- should be run by crontab and have next parameters:
script_name $par1 $par2 $par3 $par4
where script will search in dir $par1 for files with mask $par2 and if number of... (2 Replies)
Dear Gents,
Please I need your help... I need small script :) to do the following.
I have a thousand of files in a folder produced daily.
I need first to merge all files called. txt (0009.txt, 0010.txt, 0011.txt) and and to output a resume of all information on 2 separate files in csv... (14 Replies)
Hello,
I have 2 tables (first file with colon separated, second file comma separated) like below:
Please note that the matching number (kind of primary key) is a number and is NOT unique. It is 2nd column in table1 and 4th column in table2.
# cat table1
vgbpjdata1:80
vgbpjdata2:50... (6 Replies)
i need my script1.sh to generate /tmp/temp.txt with full permissions i.e
-rwxrwxrwx 1 user1 users 23 Dec 16 10:52 /tmp/temp.txtmore script1.sh
umask 666
echo "hello">/tmp/temp.txt
But the script1.sh generates temp.txt with different permissions as shown below.
-rwxr-xr-x 1 user1 users... (6 Replies)
Discussion started by: mohtashims
6 Replies
LEARN ABOUT DEBIAN
postfix-policyd-spf-perl
postfix-policyd-spf-perl(1) General Commands Manual postfix-policyd-spf-perl(1)NAME
postfix-policyd-spf-perl - pure-Perl Postfix policy server for SPF checking
VERSION
2.008
USAGE
Usage:
policyd-spf-perl [-v]
OTHER DOCUMENTATION
This documentation assumes you have read Postfix's README_FILES/ SMTPD_POLICY_README.
SYNOPSIS
postfix-policyd-spf-perl is a Postfix SMTP policy server for SPF checking. It is implemented in pure Perl and uses the Mail::SPF CPAN mod-
ule. Note that Mail::SPF is a complete re-implementation of SPF based on the final SPF RFC, RFC 4408. It shares no code with the older
Mail::SPF::Query that was the original SPF development implementation.
This version of the policy server always checks HELO before Mail From (older versions just checked HELO if Mail From was null). It will
reject mail that fails either Mail From or HELO SPF checks. It will defer mail if there is a temporary SPF error and the message would
othersise be permitted (DEFER_IF_PERMIT). If the HELO check produces a REJECT/DEFER result, Mail From will not be checked.
If the message is not rejected or deferred, the policy server will PREPEND the appropriate SPF Received header. If Mail From is anything
other than completely empty (i.e. <>) then the Mail From result will be used for SPF Received (e.g. Mail From None even if HELO is Pass).
The policy server skips SPF checks for connections from the localhost (127.) and instead prepends and logs 'SPF skipped - localhost is
always allowed.' If you have relays that you want to skip SPF checks for, you can add them to relay_addresses on line 78 using standard
CIDR notation in a space separated list. For these addresses, 'X-Comment: SPF skipped for whitelisted relay' is prepended and logged.
Error conditions within the policy server (that don't result in a crash) or from Mail::SPF will return DUNNO.
DESCRIPTION
Logging is sent to syslogd.
Each time a Postfix SMTP server process is started it connects to the policy service socket and Postfix runs one instance of this Perls
script. By default, a Postfix SMTP server process terminates after 100 seconds of idle time, or after serving 100 clients. Thus, the cost
of starting this Perl script is smoothed over time.
The default policy_time_limit is 1000 seconds. This may be too short for some SMTP transactions to complete. As recommended in SMTPD_POL-
ICY_README, this should be extended to 3600 seconds. To do so, set "policy_time_limit = 3600" in /etc/postfix/main.cf.
TESTING THE POLICY DAEMON
Testing the policy daemon
To test the policy daemon by hand, execute:
% /usr/sbin/postfix-policyd-spf-perl
Each query is a bunch of attributes. Order does not matter, and the server uses only a few of all the attributes shown below:
request=smtpd_access_policy
protocol_state=RCPT
protocol_name=SMTP
helo_name=some.domain.tld
queue_id=
instance=71b0.45e2f5f1.d4da1.0
sender=foo@bar.tld
recipient=bar@foo.tld
client_address=1.2.3.4
client_name=another.domain.tld
[empty line]
The policy daemon will answer in the same style, with an attribute list followed by a empty line:
action=550 Please see http://www.openspf.org/Why?id=foo@bar.tld&ip=1.2.3.4&
receiver=bar@foo.tld
[empty line]
To test HELO checking sender should be empty:
sender=
... More attributes...
[empty line]
If you want more detail in the system logs change $VERBOSE to 1.
POSTFIX INTEGRATION
1. Add the following to /etc/postfix/master.cf:
spfcheck unix - n n - 0 spawn
user=policyd-spf argv=/usr/sbin/postfix-policyd-spf-perl
2. Configure the Postfix SPF policy service in /etc/postfix/main.cf:
smtpd_recipient_restrictions =
...
reject_unauth_destination
check_policy_service unix:private/spfcheck
...
spfcheck_time_limit = 3600
NOTE: Specify check_policy_service AFTER reject_unauth_destination or
else your system can become an open relay.
3. Set up machines which you expect to legitimately forward mail to this
server (see description in synopsis). This should typically include
the IP addresses which backup Mail eXchangers, and known non-SRS
forwarders will use to submit mail to this server (i.e. the source IPs
of the other servers).
4. Restart Postfix.
5. Verify correct backup MX operation (if applicable).
SEE ALSO
libmail-spf-perl, <http://www.openspf.org>
AUTHORS
This version of policyd-spf-perl was written by Meng Weng Wong <mengwong+spf@pobox.com> and updated for libmail-spf-perl by Scott Kitterman
<scott@kitterman.com> and Julian Mehnle <julian@mehnle.net>.
This man-page was written by Scott Kitterman <scott@kitterman.com>.
2012-01-19 postfix-policyd-spf-perl(1)