1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Sending mail is slow

Discussion in 'Plesk for Linux - 8.x and Older' started by DoobyWho, Jul 24, 2005.

  1. DoobyWho

    DoobyWho Guest

    0
     
  2. jamesyeeoc

    jamesyeeoc Guest

    0
     
    That's weird that by putting the -Rt0 you would not be able to connect. Here is a sample smtp_psa file with one MAPS server being used (the MAPS/RBL server does not have to be used):

    service smtp
    {
    socket_type = stream
    protocol = tcp
    wait = no
    disable = no
    user = root
    instances = UNLIMITED
    server = /var/qmail/bin/tcp-env
    server_args = -Rt0 /usr/sbin/rblsmtpd -r sbl-xbl.spamhaus.org /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
    }


    The only thing I can think of is that during editing the 'server args' line got split up with a LF char. I have had this happen when using vi and pico before. Notice there is no LF '$' char on the end of the server_args line, until the end '/true$'

    Once you edit any file which contains long lines, do a 'cat -A filename' and it will show you where LF characters are:
    [root@ns2 xinetd.d]# cat -A smtp_psa
    $
    service smtp$
    {$
    ^Isocket_type = stream$
    ^Iprotocol = tcp$
    ^Iwait = no$
    ^Idisable^I^I= no$
    ^Iuser = root$
    ^Iinstances = UNLIMITED$
    ^Iserver = /var/qmail/bin/tcp-env$
    ^Iserver_args = -Rt0 /usr/sbin/rblsmtpd -r sbl-xbl.spamhaus.org /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true$
    }$


    The '$' is the location of each LF. If you ever see any '^M' in a linux text file when doing the 'cat -A filename', that is not good. Many people use Windows editors to edit files, then upload them. Windows puts 'LF' and 'CR' on the end of lines.

    To remove the CR chars (^M's), use the 'dos2unix filename' once the file is uploaded. Note: the ^I characters show the location of tabs.
     
  3. DoobyWho

    DoobyWho Guest

    0
     
    Strange... I redid it, ran the cat command (didnt do that before) and restarted the service and it worked. Wonder why it didn't before.

    Thanks!
     
Loading...