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.

How to put delivered mail back in queue?

Discussion in 'E-mail Discussions' started by krisdv, Nov 12, 2005.

  1. krisdv

    krisdv Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Belgium
    Is it possible to bring delivered mail back in exim queue?

    Mails have been delivered locally why they should have been sent to remote SMTP server.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You can reprocess an inbox (mbox format) file, if that's what you want to do, so long as you've fixed the original issue that cause the problem, using:

    cd /home/username/mail/domain.com/username
    cp -a inbox inbox.for
    cat /dev/null > inbox
    cat inbox.for | formail -s /usr/sbin/sendmail an@other.com
    rm -f inbox.for
     
  3. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    what is call "relay mail"

    Well, this is not relating to this thread.. but

    can somebody tell me what is call "relay mail" and what it exactly dose? :confused:
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    An SMTP server sends, or relays, email from one place to another. It can either accept email from an email client (MUA) or another SMTP server and then it has to do something with it: either send the email on to another SMTP server or deliver it into a users inbox. That is what relaying is: receiving an email and delivering it.
     
  5. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    SPF record

    Thnx ..

    1. will SPF record stop relay mails...

    2. what can we do to stop mail relay in a particular domain

    3. what is call "open relay"
     
    #5 neo4242002, Nov 14, 2005
    Last edited: Nov 15, 2005
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    1. No

    2. Remove it from /etc/localdomains and put it in /etc/remotedomains (create that file if necessary)

    3. An open relay is an SMTP server that allows anyone to relay email through it, rather than just for local deliver or authenticated connections only. An open relay can be used to send out spam.
     
  7. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    1. OK... but what SPF can we use for

    2. if I am correct we do /etc/remotedomains when there is remote MX right?

    3. How do we prevent open relay (I am using latest cpanle RELEASE with lots of bugs .. he he he..)
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    1. See the SPF and/or SpamAssassin sites for an explaination (i.e. use your favourite search engine)

    2. That file is indeed also used if your have a remote MX record for a domain that you host

    3. What makes you think that exim is configured as an open relay? The default configuration is not.
     
  9. krisdv

    krisdv Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Belgium
    Thank you for the info but what should I put instead of an@other.com or is ther no need to replace it at all?
     
  10. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    You should replace an@other.com with the email address to which you would like the message(s) sent.
     
  11. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Ok thinks are getting very interesting here.. can I use above commands for forward emails (which are already delivered to user inbox) to any email account?
     
  12. MattGetWeb

    MattGetWeb Well-Known Member

    Joined:
    Aug 4, 2005
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Sorry, completely off topic. I just enjoy learning and sharing shell shortcuts. :)

    A shortcut for this
    cat /dev/null > inbox
    is
    > inbox
     
  13. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yes, you can.
     
  14. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Ok chirpy.. you seems to be a Star.. :D :D :D

    Is there way, to bring deleted Messages back to queue? :confused:
     
  15. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    What do you mean by 'deleted' in this instance:

    1. messages that were in the mail queue and were deleted from the queue before being delivered?

    2. messages that were delivered and then deleted from the relevant inbox/imap folder?

    3. something else?

    If either 1 or 2, I don't think there is anything you can do - deleted means discarded means gone means it doesn't exist any more (putting aside any discussion on how, if or when data is actually deleted from a magnetic disk).
     
  16. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Thank webignition. I was talking about (1). :) and I think you have a fair answer
     
  17. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    one of my client recently move to one of his own dedicated server. His account was more than 20Gb so I could not use WHM cpanel Auto migration tool to setup his account in new server. so I setup the account and changed the DNS.


    :( :( :( :( :( :(

    I forgot to setup emails account

    now all emails been deliver to user@domain so how do

    1) what is the most convenient way to move ONLY emails account from old server to new server

    2) can I deliver all emails back to relevant recipients which is already delivered to default account?

    3) What is the most convenient way to move FTp accounts from old server to new server?

    Can some be helpful :confused: :confused:
     
    #17 neo4242002, Jan 3, 2006
    Last edited: Jan 3, 2006
Loading...

Share This Page