Email address from AIX

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Email address from AIX

  • Creator
    Topic
  • #49281
    Michael Lacriola
    Participant

      We have been sending email from our RS/6000 box for a while now. Emails are sent as user hci@cdh.org — Anyway I can modify this specifically for each user? The problem is that our relay server does not have hci@cdh.org registered and, therefore, any replies to this email address go unchecked. I would like it to be, let’s say, the Chief Security Officer’s email or something that can get bounced back to me.

      Any AIX sendmail.cf gurus available to discuss?

    Viewing 4 reply threads
    • Author
      Replies
      • #61359
        James Cobane
        Participant

          Mike,

          One option to look at is the /etc/aliases file.

        • #61360
          Michael Lacriola
          Participant

            That’s great information for aliasing “who” you are sending the message to (.mailrc is another good example). I don’t think my original question was phrased correctly: I’m trying to alias where the message came from. If using profile hci for the mail command, the reply goes to hci@cdh.org. The @cdh.org part is fine, but I want to change the hci part to something like michael_lacriola or possibly the security officer email address.

            I hope this clarifies it a bit. Anyone have examples? This is all about that “disclaimer” you see at the bottom of emails. If someone gets it in error and needs to “reply” back, the replay address needs to be something other than hci@cdh.org.

          • #61361
            Russ Ross
            Participant

              I have made a couple of modifications to the sendmail.cf file in the past and had to hack at it too becuase I do not get much practice.

              Now that your second post gives me a better idea of what you want, I’m not sure sendmail.cf is the place I would look to resolve the issue.

              My understanding is that you want to have hci@cdh.org send the email but show a different return address in case someone receiving the email wants to reply to it.

              I did a specific test where hci@mdacc.tmc.edu is the sender and sent myself a test message as follows:

              Code:

              echo “Subject: test 1 from hci” | sendmail rross@mdanderson.org

              In this case the return address showed as hci@mdacc.tmc.edu.

              Then I did the same test but specified a return address rather than using the default as follows:

              Code:

              echo “Subject: test 2 from hci” | sendmail -fwhatever@mdanderson.org rross@mdanderson.org

              In this case I got the desired outcome and the return address showed as whatever@mdanderson.org.

              Russ Ross
              RussRoss318@gmail.com

            • #61362
              Michael Lacriola
              Participant

                Thanks Russ. I also found that using the mailx with switch -r will do the same thing. For some reason, I’m using mostly the mail command to send email messages. I guess I’ll need to convert them to mailx or sendmail.

                Once again, it amazes me of the thorough and broad knowledge of this index. It is by far the best.

              • #61363
                Russ Ross
                Participant

                  My recollection is that mail and likely others like mailx eventually call sendmail to get the work done but the usage/switches might be slightly different.

                  I had been using mail and x-mail but just chose sendmail since that is what they are setting on top of.

                  I’m not sure it really matters if you already have an established direction, unless you are finding out mail does not have a comparable switch which I would expect that it should.

                  Russ Ross
                  RussRoss318@gmail.com

              Viewing 4 reply threads
              • The forum ‘Cloverleaf’ is closed to new topics and replies.