Skip to main content

How can I send a single email from the server? Command line?

Comments

6 comments

  • madmanmachines
    Hi, You'll need to receive mail from the same address that you send the delist request from, so you should probably just create a temporary email account. As well, are you sure the RBL requires the delist request to be sent from the server? Thanks,
    0
  • lenashore
    Hi, You'll need to receive mail from the same address that you send the delist request from, so you should probably just create a temporary email account. As well, are you sure the RBL requires the delist request to be sent from the server? Thanks,

    It did say "from the IP it was listed". So, I'm inferring it needs to come from the server. I did find a possible solution from the command line a few minutes ago. I should know in a few hours if it worked. As if it worked, I should be delisted within 3 hours.
    [root@tecadmin ~]# mail -s "Test Subject" user@example.com < /dev/null
    0
  • cPanelMichael
    Hello, While it may work sending from the command line, is there any reason you can't create an email account for a domain name hosted on your server? Thank you.
    0
  • lenashore
    Hello, While it may work sending from the command line, is there any reason you can't create an email account for a domain name hosted on your server? Thank you.

    I suppose I could. There are no mail accounts at all on the server now. I guess I assumed if I made an account it would add extra software to the server. Also, all sites are set up to use outside mail servers. Would that matter? Maybe that is a non-issue?
    0
  • cPanelMichael
    I guess I assumed if I made an account it would add extra software to the server

    No extra software is installed as cPanel already includes email functionality. That being said, if the domain name resolves to a remote server and email is handled remotely, then it's likely a better idea to send the email as you did. Thank you.
    0
  • lenashore
    Thanks for the clarification on how it works. Much appreciated. So much to learn, but that can be fun.
    0

Please sign in to leave a comment.