Pre- and Post-Processing (Prepost) |
Email Notification configuration examples.
This topic demonstrates the Email Notification setup with the following examples:
When a transfer session is finished, an e-mail with brief session summary will be sent to the "list1".
<EMAILNOTIF> <MAILLISTS list1 ="janedoe@companyemail.com, johndoe@companyemail.com" /> <MAILCONF FROM="Aspera Notifier <admin@companyemail.com>" MAILSERVER="smtp.companyemail.com" BODYTEXT="%{NEWLINE}Powered by Aspera Inc." /> <FILTER MAILLISTS="list1" SENDONSESSION="yes" SUBJECTPREFIX="Aspera Transfer - %{USER} " BODYPREFIX="Status: %{STATE}%{NEWLINE} File Count: %{FILECOUNT}" /> </EMAILNOTIF>
Send a transfer notice e-mail when a transfer is initiated; send a summary e-mail when finished.
<EMAILNOTIF> <MAILLISTS list1 ="janedoe@companyemail.com, johndoe@companyemail.com" /> <MAILCONF FROM="Aspera Notifier <admin@companyemail.com>" MAILSERVER="smtp.companyemail.com" SUBJECT=" by %{USER}" BODYTEXT="%{NEWLINE}Powered by Aspera Inc." /> <FILTER MAILLISTS="list1" SENDONSTART="yes" SENDONSTOP="no" SUBJECTPREFIX="Transfer Started" BODYPREFIX="Source: %{PEER}%{NEWLINE} Target: %{TARGET}" /> <FILTER MAILLISTS="list1" SENDONSTART="no" SENDONSTOP="yes" SUBJECTPREFIX="Transfer Completed" BODYPREFIX=" Status: %{STATE}%{NEWLINE} File Count: %{FILECOUNT}%{NEWLINE} Source: %{PEER}%{NEWLINE} Target: %{TARGET}%{NEWLINE} Bytes Transferred: %{TOTALBYTES} Bytes%{NEWLINE} " /> </EMAILNOTIF>
When Aspera Sync triggers a transfer (Assuming only Aspera Sync uses the folder /sync-folder), an e-mail will be sent to the "mediaGroup". When a regular transfer occurs (Files sent to /upload), a different notification will be sent to the "mediaLead" and the "adminGroup".
<EMAILNOTIF> <MAILLISTS mediaGroup ="johndoe@companyemail.com, janedoe@companyemail.com" mediaLead ="janedoe@companyemail.com" adminGroup ="admin@companyemail.com, root@companyemail.com" /> <MAILCONF FROM="Aspera Notifier <admin@companyemail.com>" MAILSERVER="smtp.companyemail.com" BODYTEXT="%{NEWLINE}Powered by Aspera Inc." /> <FILTER MAILLISTS="list1" SENDONSESSION="yes" DESTIP="192.168.1.10" TARGETDIR="/sync-folder" SUBJECTPREFIX="Aspera Sync #1 - From %{PEER}" BODYPREFIX="Status: %{STATE}%{NEWLINE} File Count: %{FILECOUNT}" /> <FILTER MAILLISTS="list2,list3" SENDONSESSION="yes" TARGETDIR="/upload" SUBJECTPREFIX="Transfer - %{USER}" BODYPREFIX=" Status: %{STATE}%{NEWLINE} Source: %{PEER}%{NEWLINE} File Count: %{FILECOUNT}%{NEWLINE} Bytes Transferred: %{TOTALBYTES} Bytes%{NEWLINE} " /> </EMAILNOTIF>