The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mail Services Questions

Discussion in 'E-mail Discussions' started by mferry, Apr 3, 2015.

  1. mferry

    mferry Member

    Joined:
    Nov 25, 2013
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pittsburgh, PA USA
    cPanel Access Level:
    DataCenter Provider
    Folks,

    need a little direction on what each one is doing....
    Here is my understanding....

    1 - Dovecot is running for POP3/IMAP services
    2 - EXIM is running as SMTP service.

    Where does sendmail come in to this?
    Where does postfix come in to this ?

    The reason why I am asking and getting a better understanding is because I have a script that needs to send emails but I would like to just drop these files in the 'pickup' or 'maildrop/queue' folder.

    I have no problem getting the file formatted correctly, but I am hitting dead ends on where to put it.

    I have seen reference to /var/spool/mqueue --- but this doesn't exist on my WHM setup.
    Also reference to /var/spool/postfix/maildrop.... this doesn't exist either.


    Need little direction on how to locate a folder that the SMTP service watches to send mail.
    I looked at exim.conf and other configurations, but no luck in finding any solid leads.

    Thanks for the help.

    Matt
     
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi Matt,

    You're correct. Dovecot is for POP3 and IMAP. Exim is an MTA (Mail Transfer Agent) and is used for sending. Sendmail and Postfix are also MTA's. They are not installed by default on cPanel/WHM servers.

    The Exim queue is in /var/spool/exim/input directory. It's not really a good idea to "drop" your messages that you want to send into that folder because they do have to have a specific message ID (generated by Exim).
     
  3. mferry

    mferry Member

    Joined:
    Nov 25, 2013
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pittsburgh, PA USA
    cPanel Access Level:
    DataCenter Provider
    is there something I can add on that would have a "good" drop folder?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Are there any reasons you need to queue your email for delivery instead of sending it out right away? It's likely a better idea to simply stagger the emails through the script you are using to send email if that's something you need to do.

    Thank you.
     
  5. mferry

    mferry Member

    Joined:
    Nov 25, 2013
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pittsburgh, PA USA
    cPanel Access Level:
    DataCenter Provider
    The actually emails are being generated by an backend application server. Each customer on the application server will have an hosting account on a whm/cpanel server. We have kinda have moved to SMTP authentication to send these messages because that way the SMTP traffic can be tracked per account.

    The problem I see now is cPanel password changes..... they change their password in cPanel... the application server needs to query via an API to get the current password to send mail as that customer/account.

    Is there an API call for current password?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The passwords are encrypted, but the following document explains API authentication in general:

    Guide to API Authentication

    The following document is deprecated, but it should give you an overall idea of how to implement this:

    http://documentation.cpanel.net/display/SDK/Guide+to+Standardized+Hooks+-+Universal+Password+Trap

    You will need to update this method to use the Passwd event hook.

    Thank you.
     
Loading...

Share This Page