Sponsored Content
Top Forums Programming Users to submit email for ftp creation Post 303000564 by rbatte1 on Friday 14th of July 2017 11:49:50 AM
Old 07-14-2017
If the above line is added into /etc/aliases and a command newaliases is run, then any mail arriving at your server for sftp will cause the script /path/to/script to be run with the email as standard input.

You can do something dull with it, so the script could just be as short as:-
Code:
dd of=/var/spool/requests/$(date +%Y%m%d%H%M%S).$$

.... which will write the email to a timestamped (and process id) spool file that something else could be watching for.

You would still need to be able to read through the email and decipher what the request was, but then you can create the account and send them a reply fairly easily.



Does that help?
Robin
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to change default email sent to new users

Hello all, I have a question about the email that is sent to new users when they first check their email. The message is directly from the server and says something like "Welcome to "mailserver", you login is atypical." Where is this message? Can I change the message that is sent? Were... (2 Replies)
Discussion started by: calivw78
2 Replies

2. Forum Support Area for Unregistered Users & Account Problems

now 4 users created, still no email

I'm sorry for being an annoyance. I did read in another post that anyone who gives a proper email address will receive a confirmation. Well, I have created 4 accounts to no avail. Who knows, maybe I did mistype my email in one of them (twice since we have to reconfirm and with the same typo),... (3 Replies)
Discussion started by: seaghan
3 Replies

3. UNIX for Dummies Questions & Answers

email users isssue

Hi, my email server is set up in a different machine which runs lineox enterprise 3.0. It exports /var/spool/mail to the sun server running solaris 9 and hence, all workstations nd users can access their mail. but the problem is some users cannot open their mail at all. the error "mailer... (0 Replies)
Discussion started by: stakes20
0 Replies

4. UNIX for Dummies Questions & Answers

send email to more users

Hi, If I want to send an email to serveral users, what is the correct way to do it? I know a little bit mail command. If I want to send email to John and Scott after UNIX shell scripts have completed the job. I type: mail -s 'Job has been completed successfully' john@yahoo.com < log.txt ... (4 Replies)
Discussion started by: duke0001
4 Replies

5. Solaris

creation of users

Hello, I'm preparing a script for creating users automatically. I,m using this command useradd -c "Name foo" -d /export/home/my -f 10 -g other -u 10001 -s /bin/bash my the problem i have is when i create the user by command line, this acount is locked. What do i have to change in the... (2 Replies)
Discussion started by: javierg
2 Replies

6. UNIX for Dummies Questions & Answers

to send email to multiple users

hi, i'm pretty new to this unix. i've been asked to create a shell script which will pick up the email id from a text file(stored in same machine, same directory) searches for that id in another file in which a product name( a one line text) is mentioned against it. then it should send a mail... (0 Replies)
Discussion started by: vishwas.shenoy
0 Replies

7. Shell Programming and Scripting

FTP and LOg file creation

Hello, I am new to unix , and I need to create a shell sciprt which helps me FTPing file from LAn to Unix box. These files r then processed using Perl script and put in a database. I also need to log the entire process of all the above methods in a log file in the same shell script. Like ,... (2 Replies)
Discussion started by: agarwalniru
2 Replies

8. Shell Programming and Scripting

Sending an email to group of users

Hi , I want to write a Unix script which can send an automatic email to the group when my job is completed.I'm trying the following Mail -s "test" <groupname> << EOD >Completed >EOD With this i'm not able to send an email to group..Any ideas? Thanks in Advance (1 Reply)
Discussion started by: BhawanaAggarwal
1 Replies

9. UNIX for Dummies Questions & Answers

Help: Add email users in OSX terminal

Please forgive me if this is the wrong place to post. I am a VERY basic user here and have been tasked with adding a user to our email system -- we use a squirrelmail interface and I have root passwords etc. I tried logging in through a browser but get this error: ERROR: Connection dropped... (1 Reply)
Discussion started by: dperro01
1 Replies

10. UNIX for Beginners Questions & Answers

Email the users about their existing groups

Hi Guys, I want a script where in I need to send an email to individual users about their groups. OS:unix redhat Shell :Bash. The mail should be like,"Hi &username , you are in part of &group1,&group2 .." I need to mail to their personal email id mostly @outlook. Not to their UNIX.... (1 Reply)
Discussion started by: vijay2107
1 Replies
POLLRCVD(8)						      System Manager's Manual						       POLLRCVD(8)

NAME
pollrcvd - HylaFAX script for delivering facsimile received by polling SYNOPSIS
/var/spool/hylafax/bin/pollrcvd mailaddr faxfile devid commid error-msg DESCRIPTION
bin/pollrcvd is the command script invoked by the HylaFAX server whenever a facsimile is received as a result of a polling operation. The default script uses electronic mail to deliver the facsimile to the user that submitted the poll request, and can be controlled by editing the etc/PollDispatch shell script in the spooling area that is sourced by pollrcvd when it runs. The arguments are: mailaddr the electronic mail address of the user that submitted the poll request. faxfile the pathname of the received TIFF file relative to the root of the spooling hierarchy. commid The communication identifier associated with the call (used to include a transcript when an error occurs). devid the modem device on which the document was received. error-msg an error message that is non-null if an error was encountered during the receive operation. NOTES
The default script delivers facsimile as PostScript wrapped in MIME. FILES
/var/spool/hylafax spooling area /usr/sbin/faxinfo for printing information about the facsimile /usr/bin/fax2ps for converting TIFF to PostScript /usr/lib/sendmail for delivering mail SEE ALSO
faxq(8), hylafax-server(5), recvq(5) May 12, 1996 POLLRCVD(8)
All times are GMT -4. The time now is 01:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy