complete rookie sendmail question

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default complete rookie sendmail question

    first.... thank you all for the invaluable amount of info and resorses
    that flow through this mail list.. I hope to one day contribute more
    than I take away.

    that said This is what is happening. I have a webserver 'web1.foo.com'
    that is not the mailserver for foo.com (that is mail.foo.com).
    /var/log/maillog has errors like:

    Feb 25 07:34:09 web1 sm-mta[98913]: j1PDTdTd098790:
    to=<bar@somedomain.com>, ctladdr=<foo@web1.foo.com> (1002/1002),
    delay=00:04:30, xdelay=00:00:00, mailer=esmtp, pri=120427,
    relay=mail.foo.com. [64.73.41.34], dsn=4.0.0, stat=Deferred: Connection
    refused by mail.foo.com.

    as well I am seeing:

    Feb 25 00:10:56 web1 sm-mta[88984]: j1P1HLV8081785:
    to=<foo@somedomain.com>, ctladdr=<www@web1.foo.com> (80/80),
    delay=04:53:35, xd
    elay=00:00:06, mailer=esmtp, pri=930762, relay=somedomain.com.
    [216.166.63.26], dsn=4.0.0, stat=Deferred: 451 4.1.8 Domain of sender
    addre
    ss [email]www@web1.foo.com[/email] does not resolve

    I beleive this is because the ctladdr should be [email]foo@foo.com[/email] and not
    [email]foo@web1.foo.com[/email]

    how can i configure sendmail for send out mail as foo.com and NOT
    web1.foo.com? is this possible?

    am I barking up the wrong tree here to find out why I am not able to
    send mail out...

    Ken Hawkins Guest

  2. Similar Questions and Discussions

    1. Complete Newbie: Purchasing Question
      I want to make the switch to Coldfusion. All I need to buy is ColdFusion MX7 Standard and install it on my web server? Then, on my local machine...
    2. rookie question
      Ok ... haven't done much page layout since Quark 3.2 was ll the rage, so be nice. I have been charged with the task of formatting a series of...
    3. chrome effect for vector image (sorry for the rookie question)
      I'm working on our website and would like to add a chrome effect to our logo that has been created as a vector image in AI CS. Can any of you...
    4. Perl Mail::SendMail question...
      I have a simple Perl script that I use to load data into my database. Upon completion of the import I send a quick mail message to the person...
    5. Sendmail question
      hi if i disabled sendmail daemon by stopping it and renaming the startup scripts does it affect cron jobs that send their outputs to emails?? ...
  3. #2

    Default Re: complete rookie sendmail question

    On 2005-02-25 11:03, Ken Hawkins <ken@rosewoodblues.com> wrote:
    > first.... thank you all for the invaluable amount of info and
    > resorses that flow through this mail list.. I hope to one day
    > contribute more than I take away.
    >
    > that said This is what is happening. I have a webserver
    > 'web1.foo.com' that is not the mailserver for foo.com (that is
    > mail.foo.com). /var/log/maillog has errors like:
    >
    > Feb 25 07:34:09 web1 sm-mta[98913]: j1PDTdTd098790:
    > to=<bar@somedomain.com>, ctladdr=<foo@web1.foo.com> (1002/1002),
    > delay=00:04:30, xdelay=00:00:00, mailer=esmtp, pri=120427,
    > relay=mail.foo.com. [64.73.41.34], dsn=4.0.0,
    > stat=Deferred: Connection refused by mail.foo.com.
    Is mail.foo.com running an MTA?

    Does the setup of the MTA, the firewall, whatever else runs on
    mail.foo.com allow connections from your web1.foo.com host?
    > how can i configure sendmail for send out mail as foo.com and NOT
    > web1.foo.com? is this possible?
    This is probably a job of the MTA running on mail.foo.com, which
    should probably have the option:

    MASQUERADE_AS(`foo.com')
    MASQUERADE_DOMAIN(`foo.com')

    If it doesn't already, that is. Handling the masquerading of outgoing
    email in one central place (the MTA setup of mail.foo.com) is much
    preferable, since you only have to update ONE place whenever you feel
    like changing the MASQUERADE_AS option.

    - Giorgos

    Giorgos Keramidas Guest

  4. #3

    Default Re: complete rookie sendmail question

    Found out it was a firewall issue and that is open now. though my
    problem has gone from connection refused to:
    Feb 27 08:22:04 web1 sendmail[85505]: j1MIj4DI065443: <...>
    delay=4+19:37:00, xdelay=00:00:00, mailer=esmtp, pri=22920813,
    relay=bhost1.broadjam.net., dsn=4.0.0, stat=Deferred: Operation timed
    out with bhost1.broadjam.net.

    is there a timeout that I can set in sendmail to set a longer wait time
    on this?

    my flags in my rc.conf are:

    sendmail_enable="YES"
    sendmail_flags="-bd -q30m" # -bd is pretty mandatory.

    I am in a bit of a panic because my mail queue is starting to fill up
    and I need to get these messages out....

    thanks,
    ken;
    On Feb 25, 2005, at 11:11 AM, Giorgos Keramidas wrote:
    > On 2005-02-25 11:03, Ken Hawkins <ken@rosewoodblues.com> wrote:
    >> first.... thank you all for the invaluable amount of info and
    >> resorses that flow through this mail list.. I hope to one day
    >> contribute more than I take away.
    >>
    >> that said This is what is happening. I have a webserver
    >> 'web1.foo.com' that is not the mailserver for foo.com (that is
    >> mail.foo.com). /var/log/maillog has errors like:
    >>
    >> Feb 25 07:34:09 web1 sm-mta[98913]: j1PDTdTd098790:
    >> to=<bar@somedomain.com>, ctladdr=<foo@web1.foo.com> (1002/1002),
    >> delay=00:04:30, xdelay=00:00:00, mailer=esmtp, pri=120427,
    >> relay=mail.foo.com. [64.73.41.34], dsn=4.0.0,
    >> stat=Deferred: Connection refused by mail.foo.com.
    >
    > Is mail.foo.com running an MTA?
    >
    > Does the setup of the MTA, the firewall, whatever else runs on
    > mail.foo.com allow connections from your web1.foo.com host?
    >
    >> how can i configure sendmail for send out mail as foo.com and NOT
    >> web1.foo.com? is this possible?
    >
    > This is probably a job of the MTA running on mail.foo.com, which
    > should probably have the option:
    >
    > MASQUERADE_AS(`foo.com')
    > MASQUERADE_DOMAIN(`foo.com')
    >
    > If it doesn't already, that is. Handling the masquerading of outgoing
    > email in one central place (the MTA setup of mail.foo.com) is much
    > preferable, since you only have to update ONE place whenever you feel
    > like changing the MASQUERADE_AS option.
    >
    > - Giorgos
    >
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to
    > "freebsd-questions-unsubscribe@freebsd.org"
    >
    Ken Hawkins Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139