Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Junior Member
    Join Date
    Apr 2005
    Posts
    7

    Default

    Yes, it looks like that, but still not getting the desired results. Verified everything again, restarted the site, but things are going through and not getting bounced. virtualusertable is shorter (as expected) but it just not seem to be taking effect.

  2. #12

    Default

    You do not need to restart sendmail. Sendmail is not a service that is running on your account -- it is invoked as needed when e-mail arrives. This means that sendmail reads the virtusertable database each time it executes, so rebuilding the virtusertable database is enough.


    First, enable sendmail logging on your account. To do this, edit the /etc/mail/sendmail.mc file and change line that looks like define(`confLOG_LEVEL',0)dnl to read define(`confLOG_LEVEL',10)dnl insetad (change the log level to 10). After making the change, run the following command to rebuild the sendmail configuration file:
    Code:
    m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
    If you've installed sendmail on the alternate port 2525 (from Site Manager), also run this command:
    Code:
    /etc/init.d/sendmail_daemon restart

    The mail log will be written to /var/log/maillog. Now that the mail log is enabled, run this command to watch the log while you send a test message:
    Code:
    tail -F /var/log/maillog
    Post the appropriate lines from the mail log to the Forums and we can help you decipher the error.
    Nick Venturella
    WestHost Technical Support
    Contact Support: E-mail | Live Chat

    When you expect more from your Web host
    http://www.westhost.com/

  3. #13
    Junior Member
    Join Date
    Apr 2005
    Posts
    7

    Default

    Went through those steps, and sent two message from an external web mail, one to user@mydomain (that should go through) and one to user@secondarydomain (that should get bounced). Both went through and the log entries look identical. And I checked again that only user@mydomain is in virtualusertable, and virtualusertable.db was made. The log info is below (did substitutions on the domain names)

    Oct 29 17:53:52 mydomain.com sendmail[17362]: NOQUEUE: connect from out4.smtp.messagingengine.com [66.111.4.28]
    Oct 29 17:53:52 mydomain.com sendmail[17362]: n9TNrq82017362: from=<mydomain@fastmail.us>, size=1390, class=0, nrcpts=1, msgid=<1256860431.28180.1342680113@webmail.messagi ngengine.com>, proto=ESMTP, relay=out4.smtp.messagingengine.com [66.111.4.28]
    Oct 29 17:53:55 mydomain.com sendmail[17362]: n9TNrq82017362: to=<user@otherdomain.com>, delay=00:00:03, xdelay=00:00:01, mailer=local, pri=31609, dsn=2.0.0, stat=Sent
    Oct 29 17:53:55 mydomain.com sendmail[17362]: n9TNrq82017362: done; delay=00:00:03, ntries=1

    Oct 29 18:01:02 mydomain.com sendmail[20288]: NOQUEUE: connect from out4.smtp.messagingengine.com [66.111.4.28]
    Oct 29 18:01:02 mydomain.com sendmail[20288]: n9U012K5020288: from=<mydomain@fastmail.us>, size=1336, class=0, nrcpts=1, msgid=<1256860861.29366.1342680831@webmail.messagi ngengine.com>, proto=ESMTP, relay=out4.smtp.messagingengine.com [66.111.4.28]
    Oct 29 18:01:02 mydomain.com sendmail[20288]: n9U012K5020288: to=<user@mydomain.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31553, dsn=2.0.0, stat=Sent
    Oct 29 18:01:02 mydomain.com sendmail[20288]: n9U012K5020288: done; delay=00:00:00, ntries=1

  4. #14

    Default

    "mailer=local, pri=31609, dsn=2.0.0, stat=Sent" indicates the mail was successfully delivered to the user ("local" means the mail was written to a file).

    Since the message is being accepted and delivered locally, the question now is where is the message being written to. To answer this question, enable procmail logging. Edit the file /etc/procmailrc and make two changes:

    1. Change LOGABSTRACT = "no" to LOGABSTRACT = "yes"
    2. Below this LOGABSTRACT line, add a new line that reads LOGFILE = "/var/log/procmail"

    Save the file. This time, watch the procmail log while you send another test message. You can watch the procmail log with this command:
    Code:
    tail -F /var/log/procmail
    Nick Venturella
    WestHost Technical Support
    Contact Support: E-mail | Live Chat

    When you expect more from your Web host
    http://www.westhost.com/

  5. #15
    Junior Member
    Join Date
    Apr 2005
    Posts
    7

    Default

    I can run that test later, although both messages were in the mailbox for user.

    It seems to me that problem is that the first message should not have been accepted in the first place. Is there anything to verify where sendmail is reading addresses from, or its decision path?

  6. #16
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,721

    Default

    Are you sending these emails from an account that is outside the WestHost system? I would think that since the email is being delivered locally that it might mean it being sent via a WestHost account. I may be way off since this is really not in my realm but thought I would through that out.
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

  7. #17
    Junior Member
    Join Date
    Apr 2005
    Posts
    7

    Default

    Yes, the emails are coming from an outside system - its fastmail.us. I suppose that there is a tiny chance they host at westhost, but even then they would have their own dedicated servers.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •