Help setting up cron to send me emails

I'm currently using cron to run daily backups of my system and to also run rkhunter. When I was using openSUSE I could set up my email to check my local account. I believe that I need "postfix" to be able to do this so I installed it. What else do I need to do besides having this program installed?  When I try to add the local account in kmail it is asking me to select a file location. I'm not sure what file to select here. In openSUSE it was already selected for me. Any ideas?
Thanks!

I'm no expert on postfix and used to rely on the PostFix HostOnly Howto page in the wiki.  Unfortunately, that page got deleted a week or so ago and the content doesn't appear to have been copied into either of the other two postfix pages.  Anyway, this is the gist of what it contained:
From http://wiki.archlinux.org/index.php/PostFix_HostOnly_Howto (since deleted)
$ pacman -Sy postfix
Check /etc/passwd, /etc/group to make sure that the following shows up:
postfix:x:73:73::/var/spool/postfix:/bin/false
Make sure that the following shows up in /etc/group:
postdrop:x:75:
postfix:x:73:
Edit /etc/postfix/main.cf and add the following:
inet_interfaces = loopback-only
mynetworks_style = host
append_dot_mydomain = no
default_transport = error: Local delivery only!
Edit /etc/rc.conf and add postfix to the daemons list.
Edit /etc/postfix/aliases and add a username to receive root email, i.e. put a
username in for the the following, substituting the desired actual system
account name for USER:
# Person who should get root's mail. Don't receive mail as root!
root: USER
Run the following command to create a map file for postfix:
$ postalias /etc/postfix/aliases
Create .forward in /root containing the mail address of the user to whom all
mail for root will be forwarded, e.g. USER@localhost
Start the postfix daemon by running
$ postfix check
followed by
$ /etc/rc.d/postfix start
Check /var/log/mail.log for any errors.
Try sending an email:
$ mail -s test USER
this is a test email.
Last edited by azleifel (2009-12-25 09:35:58)

Similar Messages

  • Setting a button to send an email in captivate 3

    I set a button to send an email upon click at the end of my presentation. This is so if people have a question or comment they can send an email. I can get it to work but it also opens a blank internet page along with opening Outlook. All presentation users will use outlook so I would like get the link to open straight to email without also opening a blank page. Does anyone know how to fix this???

    Yes, various ways. See: https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

  • How to set content type while sending an email?

    Hello,
    I want to set content type text/html while send an email using org.apache.commons.httpclient api. I am using MultipartPostMethod method. and i am set using object of multipartpostmethod like post.
    and post.setRequestHeader("Content-Type","text/html").
    but it wont work.
    so please give me a proper solution.
    example::
    MultipartPostMethod post = new MultipartPostMethod("url");
    post.addParameter("msgbody","html message");
    post.setRequestHeader("Content-Type","text/html");
    Regards,
    Bhavesh Kharwa

    Actually, I'm writing a "HashMap" from servlet to applet. I have used your suggested content type "application/octet-stream" and another "appication/x-java-serialized-object" to try it. But in applet side, when I use (HashMap)in.readObject(), it always gives me a exception as:"java.util.HashMap; IllegalAccessException". Why?
    Thankd.

  • HELP. Using iCal to send timed emails - I used to be able to do this...

    Ok - there's a chance I've gone completly mad - or I just dreamt this - but: Once upon a time I used iCal to send timed emails (with Mail) to outside addresses without the emails looking like they came from iCal.
    I did this for things like 'calling' in sick to work (therefor looking like I was up at 8:15 being ill, instead of sleeping comfortably in hung over splendor) or sending out parts of work throughout the workday (instead of when I'd actually completed them at three in the morning).
    This was very useful.
    I just can't now figure out how I did this.
    Has one of the iCal updates removed this function? Is there something obvious I've forgotten?
    I seem to remember using iCal to trigger a file that in turn sent the email - but again I can't trust my memory.
    Anyone have any hints or ideas? I'm driving my self mad on this one.

    Neal,
    I am in the same predicament. I would essentially like to accomplish the same deal, as seen below. . . (from another forum that went unanswered.)
    I use iCal (1.5.5/ 2.0.3) currently but own Entourage (11.2.1) as well. I have clients that I service on a weekly or biweekly basis whose appointments are in my iCal; I call and remind them the day before. The majority of these people are great about checking email. I would like to set up an automated email reminder which is sent to them for each appointment, two days in advance that does not contain an .ics file. Many times my clients' email app has junked the message due to the small attachment. Others don't want to open a file when they don't know what it is.
    Predetermined timed stamped/Automated iCal events are possible aren't they?! If not, do I have to move over to :dreaded Entourage?

  • Help needed from manojpj regarding sending automatic emails

    HI manojpj,
    I saw your post in this forum regarding sending automatic emails.
    In my project also i want to send automatic emails and also want to retrieve emails automatically.
    i did retrieving and sending emails with user interaction.But i want to do automatically.In your post you told that your having code for sending automatic emails.
    can u please send me that code?
    Thanx a lot

    Dont hold your breath, there is a thread with hundreds of people asking for such code and no-one ever posted it.
    The easiest way is to use a cron job
    If you want to use Java instead of cron have a look at
    http://www.opensymphony.com/quartz/wikidocs/FAQ.html
    Its a java based job scheduler, you can use this to shedule your mails, or, as its open source, you can just take the code you need and add it to your esisting mailing code.

  • Help to resolve error in sending database email from SQL Server 2012.

    Please help to resolve error in sending email from SQL Server 2012.
    SQL Instance Version:
    Microsoft SQL Server 2012 (SP1) - 11.0.3449.0 (X64) 
    Jun 29 2014 23:15:18 
    Copyright (c) Microsoft Corporation
    Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.3 <X64> (Build 9600: )
    Error Message: Error MeThe mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2015-01-15T19:48:25). Exception Message:
    Cannot send mails to mail server. (The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated).)

    The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1
    Client was not authenticated).
    I think the error message is pretty clear, you have to setup authentication for the SMTP connection in Database Mail, see
    Database Mail Configuration Objects
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Please help, I'm unable to send an email with a pdf attachment

    We have Windows 8 Pro on the pc, I have been trying to send a pdf document that my husband needs to his work and no matter how I try to send it (either from reader or directly from my email with the attachment it just will not send.  Can anyone please help?

    No worries.  But it is strange that you cannot even send email with a PDF attachment from Microsoft Mail.  At this point, no PDF viewers (e.g. Microsoft Reader, Adobe Reader Touch) are involved because you are not viewing PDF files.
    Instead of saying "It won't send", you need to describe exactly what you see on the screen for every step. Where does the problem start? 
    Step 1: Attaching a PDF file to new email in Microsoft Mail
    Are you able to find the PDF file and attach it to new email?
    Step 2: Sending email with a PDF attachment
    What happens when you click the Send button?  Does it hang forever?  Does it show an error message? Could you confirm that you can send email with other type of attachments (e.g. text file, Word file) from Microsoft Mail from the same PC?
    You can provide the details to Microsoft for troubleshooting.
    Alternatively, you can try to send email with the PDF attachment from other accounts like Gmail (Google Mail) or Yahoo Mail via the web browser (Internet Explorer) interface.
    Sometimes, rebooting your system solves "mysterious" problems, too.
    Good luck!

  • On my iphone, icloud is set to an apple id that i no longer use and i keep getting asked to enter a password. Cannot remember the password. When i try to re-set the password, it sends a email to a address no longer used. Will not accept any dob i enter

    I have icloud on my phone with an apple id that I no longer use. I keep getting asked to enter the password for this ID. However I can't remember the password.
    When I try to re-set the password, a e-mail will be send to an address I no longer use and can't access.
    I then try to answer the security questions, but the date of births I enter are not accepted
    Any ideas?
    Paul

    Welcome to the Apple community.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID, verify the changes, enter the password as requested on your device and then turn off "find my phone".
    You should then change your Apple ID back to its current state, verify it once again, delete the iCloud account from your device and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • Every tab comes up untitled. I can not use the program. I followed the instructions and cleared my history. (Not that I wanted to, and this did not help. Also, when I send a email on the web untitled, - over and over. How do I fix these problems

    Program has been updated. I am running this on a PC XP

    Read this thread, it's a bug that many are experiencing:
    Cannot send emails from contacts

  • Sending an Email with a cursor that returns multiple fields.

    I was investigating about sending emails from apex, and I'd like to know if you can help me, I need to send an Email report with multiple fields, I m using this code :
    DECLARE
    CURSOR c1 is
    select id,gk,creation_date,sr_count,issue_notes,sr_impacted,oldest_creation_date
    from gk_report where id = (select max(id) from gk_report);
    reg c1%ROWTYPE;
    begin
    IF (c1%ISOPEN = TRUE) THEN
    CLOSE c1;
    END IF;
    OPEN c1;
    FETCH c1 INTO reg;
    CLOSE c1;
    APEX_MAIL.send(
    p_to => '[email protected]',
    p_from => '[email protected]',
    p_body => 'Hourly GK Log',
    p_body_html =>
    'GK: '||to_char(reg.gk)||'<br>
    CREATION DATE: '||to_char(reg.CREATION_DATE,'DD-MON-YYYY HH24:MI:SS')||'<br>
    SR COUNT: '||to_char(reg.SR_COUNT)||'<br>
    ISSUE NOTES: '||to_char(reg.ISSUE_NOTES)||'<br>
    SRs IMPACTED: '||to_char(reg.SR_IMPACTED)||'<br>
    OLDEST CREATION DATE: '||to_char(reg.OLDEST_CREATION_DATE,'DD-MON-YYYY HH24:MI:SS'),
    p_SUBJ => 'Hourly GK Log: ' || to_char(reg.CREATION_DATE,'DD-MON-YYYY HH24:MI:SS'),
    p_cc => NULL,
    p_bcc => NULL ,
    p_replyto => NULL
    end;
    In this code there is a cursor that returns just one field, But what about if the cursor returns multiple fields, How can I insert a Loop into this code.?
    Thanks,
    Pablo.

    Hi,
    DECLARE
    p_collection_name VARCHAR2(9000) := 'Report_collection';
    begin
      IF (apex_collection.collection_exists(p_collection_name => p_collection_name)) THEN
         apex_collection.delete_collection(p_collection_name => p_collection_name);
      END IF;
    apex_collection.create_collection_from_query(
            p_collection_name => 'Report_collection',
            p_query => 'SELECT DISTINCT AUD_SR AS SR,  C.USER_NAME   AS AUDITOR, F.ERROR_NAM  ,  A.AUD_OBSERV AS AUDIT_OBS,D.FEEDBK_OBSERV AS FEEDBACK_OBS , E.ANALYSIS_OBS ,A.AUD_STATUS
    FROM   AUDIT_PROCESS A, MICC_AT_DATA B, MICC_AT_USER C, FEEDBACK_PROCESS D, MICC_AT_ANALISYS E, MICC_AT_ERROR F
    WHERE   B.DATA_MONTH = :P27_MONTH AND B.DATA_SR  = A.AUD_SR AND C.ID = B.DATA_AUDITOR  AND F.ERROR_ID = A.AUD_ERROR AND A.FEEDBACK_COD = D.FEEDBACK_COD AND  D.FEEDBK_AGREE = 'N' AND E.COD_ANALYSIS =  A.COD_ANALYSIS  ORDER BY AUDITOR');
      APEX_MAIL.send(
      p_to => '[email protected]',
    p_from => '[email protected]',
    p_body => p_collection_name ,
    p_body_html => '',
    p_SUBJ => 'hi',
    p_cc => NULL,
    p_bcc => NULL ,
    p_replyto => NULL
    END;
    Error
    ORA-06550: line 18, column 176:
    PLS-00103: Encountered the symbol " AND E.COD_ANALYSIS = A.COD_ANALYSIS ORDER BY AUDITOR" when expecting one of the following:
    ) , * & = - + < / > at in is mod remainder not rem
    <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
    The symbol "," was substituted for " AND E.COD_ANALYSIS = A.COD_ANALYSIS ORDER BY AUDITOR" to continue.
    1. DECLARE
    2. p_collection_name VARCHAR2(9000) := 'Report_collection';
    3. begin
    I got out the 'N' quotes of the N :
    DECLARE
    p_collection_name VARCHAR2(9000) := 'Report_collection';
    begin
      IF (apex_collection.collection_exists(p_collection_name => p_collection_name)) THEN
         apex_collection.delete_collection(p_collection_name => p_collection_name);
      END IF;
    apex_collection.create_collection_from_query(
            p_collection_name => 'Report_collection',
            p_query => 'SELECT DISTINCT AUD_SR AS SR,  C.USER_NAME   AS AUDITOR, F.ERROR_NAM  ,  A.AUD_OBSERV AS AUDIT_OBS,D.FEEDBK_OBSERV AS FEEDBACK_OBS , E.ANALYSIS_OBS ,A.AUD_STATUS
    FROM   AUDIT_PROCESS A, MICC_AT_DATA B, MICC_AT_USER C, FEEDBACK_PROCESS D, MICC_AT_ANALISYS E, MICC_AT_ERROR F
    WHERE   B.DATA_MONTH = :P27_MONTH AND B.DATA_SR  = A.AUD_SR AND C.ID = B.DATA_AUDITOR  AND F.ERROR_ID = A.AUD_ERROR AND A.FEEDBACK_COD = D.FEEDBACK_COD AND  D.FEEDBK_AGREE = N AND E.COD_ANALYSIS =  A.COD_ANALYSIS  ORDER BY AUDITOR');
      APEX_MAIL.send(
      p_to => '[email protected]',
    p_from => '[email protected]',
    p_body => p_collection_name ,
    p_body_html => '',
    p_SUBJ => 'hi',
    p_cc => NULL,
    p_bcc => NULL ,
    p_replyto => NULL
    END;
    Error : ORA-20104: create_collection_from_query Error:ORA-20104: create_collection_from_query ParseErr:ORA-00904: "N": invalid identifier
    If you can help me would be great, and if you see another mistake please let me know i have not may reach out the solution about it.
    Thanks,
    Pablo.

  • Sending an email to customer using VF02

    Hi Experts
    can anyone help me with the code sending an email to customer using TC:vf02.i already done with config .please help me.

    Reddy,
    Please search in SDN you will find lots of post pertaining to your issue.
    Check this link you might get answers to your problem.
    send email after save VA01
    Cheers.

  • How to send an email in jsp

    hei evryone!
    can anyone pls help me on how to send an email in jsp. I mean i have a webpage wherein you submit data , upon submission or after the submit button is clicked i need to send an email to a person regarding the data sumitted on the form , i dunno how to do this, can anyone please help me on how to use Javamail, or can anyone post a sample code or site of a tutorial .. thx!

    There are some quite good examples on the use of Javamail on the Sun website. No, we're not going to write your application for you, unless you're willing to pay consultancy fees in real money.
    http://java.sun.com/products/javamail/index.jsp
    http://java.sun.com/products/javamail/FAQ.html
    http://java.sun.com/products/javamail/reference/techart/index.html

  • Send the email to myself with 4 pictures for more than 100 times --- i didn't do this

    one of my colleages send an email to [email protected], and cc the email to me.
    and my blackberry send the email with 4 pictures in my camera folder to me and joegmail.com for more than 50 times a day.
    Why does it happen? and what should i do for that. please help.

    one of my colleages send an email to [email protected], and cc the email to me.
    and my blackberry send the email with 4 pictures in my camera folder to me and joegmail.com for more than 50 times a day.
    Why does it happen? and what should i do for that. please help.

  • Sending an email from forms

    hi all,
    i need your help.i.e how to send an email from forms .we actually want that facility in our project.we are trying for that but not yet geting .please help me giving information about email in forms.
    thank you in advance

    If you are using Forms on the web, one of the most easiest way to do it is to use the Java mailing support from sun. You can load it into the rdbms 8i or later and use it. There is a step by stepp detailed description on
    www.oracle.com > publications > Oracle Magazine > Ask Tom. If you just type java mail it will be between the first ten I suppose, it's a popular topic.
    HTH,
    Tamas

  • I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great

    I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great!

    The fact that you can receive means you have a valid e mail address, and have established the connection to the incoming server, so all of that works.  Since the send does not work, that means your outgoing server is rejecting whatever settings you used formthe outgoing set up.  Try them again. 
    Google your particular isp, and ipad and many times you will find the exact settings needed for your isp.  Or tell us here, and soneone else may be on the same isp.  Some mail services need you to change a port, or have a unique name for the outgoing server.  
    Kep trying.

Maybe you are looking for

  • My Ipod touch no longer recognized by Itunes.

    Works fine with Windows 8, but not picked up by Itunes. I've already restarted Itunes, restarted local service for Ipod and restarted computer and Ipod.I have already visited http://support.apple.com/kb/ts1363 

  • Can anyone help with a solution???

    Can someone please help? My problem is that I bought my iPad mini just last week and now it's freezing half way through what I'm doing and it's also not saving any of my photos? Can anyone help with a solution???

  • WARNING: Database "DBNAME" is not discovered !!!

    Dear Gurus, After running the datagurd verification in my Grid I get following results : Initializing Connected to instance srvldbp03:DMWEB Starting alert log monitor... Updating Data Guard link on database homepage... WARNING: Database DMWEB_SITE2 i

  • Web.show_document - mailto

    Hi, I am using this command to send e-mail within Forms. web.show_document('mailto:[email protected]&subject=test&body=Hello','blank'); This command opens an outlook window message and the user have to press send to send the e-mail. Is it possible, u

  • Email and fax capabilities

    We are moving from optio to xml publisher. We were able to send the pdf to printer using pasta. I have no clues how to send the output to Email and Fax server. Any pointers in that direction would be appreciated. Thanks in advance, Suman