Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member
    Join Date
    May 2003
    Location
    Texas
    Posts
    106

    Default Exim4 - Syntactically invalid argument question

    Fortunately, I haven't had too many problems with the Exim4 upgrade. But one perplexes me, and I thought I'd run it by anybody here willing to help.

    I'm getting a lot of this error message in the exim_rejectlog:

    syntactically invalid argument(s): correo_internet.colpatria.com

    I already ran into the underscore issue and I have added the line:

    helo_allow_chars = _

    This got rid of these messages for all hosts except this particular one.

    Does anybody know what's syntactically invalid about this host name?

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:

  2. #2
    Member
    Join Date
    Apr 2003
    Location
    Lewisville, Tx
    Posts
    968

    Default

    I have already posted the fix for this. It is because you are receiving an email from a machine that has an _ in the name of it. Exim4 does not allow these to pass for some reason. Here is the work around:

    vi /etc/exim.conf

    Go to the MAIN CONFIGURATION section and add this line:

    helo_allow_chars = _

    Now restart exim /etc/init.d/exim restart

    For safeguarding make exim.conf unwritable chattr -i /etc/exim.conf

    This allows these servers to pass now. If you don't make exim.conf unwritable it will overwrite your change each time exim updates.

    cPanel.net Support Ticket Number:

  3. #3
    Member
    Join Date
    Mar 2002
    Location
    Alberta, Canada
    Posts
    1,509

    Default

    Pete, is that the address giving problems or did you change it?

    correo_internet.colpatria.com

    Notice there is no @

    cPanel.net Support Ticket Number:
    Helping people Host, Create, and Maintain their Web Site
    Also providing Server Admin Services - setup / troubleshooting

    http://potentproducts.com/

  4. #4
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Build 170 is a lot more lenient with invalid syntaxs. You should upgrade to if if you are having problems

    /scripts/updatenow
    /scripts/exim4

    cPanel.net Support Ticket Number:

  5. #5
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    Originally posted by kris1351

    This allows these servers to pass now. If you don't make exim.conf unwritable it will overwrite your change each time exim updates.
    I'd just make a copy like exim.conf.good_date. If you chattr +i exim.conf it won't get the thing installed unless yuo chattr -i it! Or did I miss something at the latest release? :-D

    cPanel.net Support Ticket Number:

  6. #6
    Member
    Join Date
    Mar 2002
    Location
    Alberta, Canada
    Posts
    1,509

    Default

    Originally posted by bdraco
    Build 170 is a lot more lenient with invalid syntaxs. You should upgrade to if if you are having problems

    /scripts/updatenow
    /scripts/exim4

    cPanel.net Support Ticket Number:
    Edit: not having run '/scripts/exim4' before, wasn't aware it uses it's own version numbers, which is where the 170 comes in -- in case anyone else was wondering.


    'nother Edit: seems that using '/scripts/exim4' leads to a bit of a loop:

    2003-07-11 08:27:38 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting before trying again
    2003-07-11 08:27:38 socket bind() to port 465 for address (any IPv4) failed: Address already in use: waiting before trying again

    Stopping Exim for a few seconds then restarting seems to fix it.
    Last edited by Website Rob; 07-11-2003 at 09:34 AM.
    Helping people Host, Create, and Maintain their Web Site
    Also providing Server Admin Services - setup / troubleshooting

    http://potentproducts.com/

  7. #7
    Member
    Join Date
    Apr 2003
    Location
    Lewisville, Tx
    Posts
    968

    Default

    We were getting those port errors to Rob. We updated yesterday morning and it seems to have gone away. Before the release yesterday morning we would have to stop and start Exim about every 2 hours to keep it running. Cpanels wonderful response was EMAIL us your passwords and we will go in and monkey with it. They didn't actually say what causes the port problems.

    The reason I chattr the exim.conf was just for safeguard. We are using Mailmon to help reduce internal spam and it has a chattr on /usr/sbin/sendmail for the script to not get overwritten. Since we only do manual updates we just make a most current backup then unlock for the update.

    cPanel.net Support Ticket Number:

  8. #8
    Member
    Join Date
    Apr 2003
    Location
    Lewisville, Tx
    Posts
    968

    Default

    Just tried doing the updatenow and the exim4 scripts to get to the latest version. It still rejects servers with the underscore in their name. You will still have to add the helo_allow_chars = _ line.

    cPanel.net Support Ticket Number:

  9. #9
    Member
    Join Date
    May 2003
    Location
    Texas
    Posts
    106

    Default

    Originally posted by kris1351
    Just tried doing the updatenow and the exim4 scripts to get to the latest version. It still rejects servers with the underscore in their name. You will still have to add the helo_allow_chars = _ line.
    Kris, I've had the helo_allow_chars = _ in there for several days already.

    Is it possible there's a certain place it needs to go and I don't have it in the right place? I have it in the Main configuration section, just under:

    # primary hostname =
    deliver_queue_load_max = 3
    auto_thaw = 1h

    helo_allow_chars = _

    Much thanks to all the helpful folks who have posted in this thread. Hopefully I'll get to the bottom of this soon.

    cPanel.net Support Ticket Number:

  10. #10
    Member
    Join Date
    Aug 2001
    Posts
    421
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Originally posted by PeteC
    Kris, I've had the helo_allow_chars = _ in there for several days already.

    Is it possible there's a certain place it needs to go and I don't have it in the right place? I have it in the Main configuration section, just under:

    # primary hostname =
    deliver_queue_load_max = 3
    auto_thaw = 1h

    helo_allow_chars = _

    Much thanks to all the helpful folks who have posted in this thread. Hopefully I'll get to the bottom of this soon.

    cPanel.net Support Ticket Number:
    Try adding helo_accept_junk_hosts = *

    cPanel.net Support Ticket Number:

  11. #11
    Member
    Join Date
    May 2003
    Location
    Texas
    Posts
    106

    Default

    You know, what seems to be happening is that when I restart Exim from WHM, it's not picking up the new /etc/exim.conf. Because I've added some SPAM protection I use, and that's not enabled either.

    So probably I'm OK with the helo_allow_chars = _ line, but why wouldn't restarting the Exim service pick up my changed /etc/exim.conf line? This works fine on another server of mine...

    cPanel.net Support Ticket Number:

  12. #12
    Member
    Join Date
    May 2003
    Location
    Texas
    Posts
    106

    Default

    Originally posted by PeteC
    You know, what seems to be happening is that when I restart Exim from WHM, it's not picking up the new /etc/exim.conf. Because I've added some SPAM protection I use, and that's not enabled either.

    So probably I'm OK with the helo_allow_chars = _ line, but why wouldn't restarting the Exim service pick up my changed /etc/exim.conf line? This works fine on another server of mine...

    cPanel.net Support Ticket Number:
    Just so nobody wastes any more time on this. The problem was that Exim was refusing to shut down during a restart. I eventually did get it to restart, and now I'm fine. I tried a lot of things to accomplish the restart; it seems restarting BIND was what worked. Not sure why that is so, but spend your time on someone else's problem now, as mine is fixed.

    Another round of thanks to all you helpful folks.

    cPanel.net Support Ticket Number:

  13. #13
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Sorry guys, its build 180 that has this change in it.

    cPanel.net Support Ticket Number:

  14. #14
    Member
    Join Date
    Mar 2002
    Location
    Alberta, Canada
    Posts
    1,509

    Default

    I think you hit the nail on the head, Pete.

    My logs show eMail addresses with: _ * - in them, all get through and I have not made any changes to the default "exim.conf" file -- other than adding the RBLs. Mind you, I don't run Spam Assassin either as I have found it causes more trouble (for me) than it is worth.

    As for shutting down, restarting services, not sure if your problem was doing it from WHM, but I have noticed that when in 'root' and using:

    /etc/init.d/'required_service' restart ( i.e., in this case: /etc/init.d/exim restart )

    seems to work best.

    cPanel.net Support Ticket Number:
    Helping people Host, Create, and Maintain their Web Site
    Also providing Server Admin Services - setup / troubleshooting

    http://potentproducts.com/

Similar Threads & Tags
Similar threads

  1. disk_usage_include_sqldbs - Invalid argument
    By Snowman30 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-09-2009, 10:38 AM
  2. shmget() failed: Invalid argument
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-02-2008, 10:00 AM
  3. Error sem_post: Invalid argument
    By a_raims in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-18-2006, 11:47 AM
  4. sem_post: Invalid argument
    By bibink in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-06-2006, 01:05 PM
  5. invalid argument while reading flags on fpexe
    By tedderz in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-06-2003, 05:59 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube