Using sendmail to receive mail sent to IP address?

I have a Linode that has sendmail installed (to send email from PHP scripts, etc.) with no other MTA installed. Since all mail to our domain is handled by a mailserver outside my control, I need to be able to send email to the Linode by using it's IP address. This email will in turn be piped through a PHP script for archival purposes - so I don't need to worry about setting up a web email service, various mailboxes, etc.

What is the simplest way to do this? I tried using the instructions at http://www.ghacks.net/2009/06/05/make-s … l-sources/">http://www.ghacks.net/2009/06/05/make-sendmail-accept-mail-from-external-sources/ (substituting the IP address in place of the domain name) but it did not work - mail sent to webmaster@xx.xx.xx.xx was not received. Nothing happened when tailing the mail.log.

Ideas?

2 Replies

@jjatbull:

What is the simplest way to do this?
Get a second domain (one that you control). Use that to send emails to your Linode.

Don't even really need to register the name, just use a host file on the system(s) that will be sending email to your Linode.

Then every howto instructions on setting up email should work.

I'll have to register the domain, since I also don't control the system sending the email - but yes, that is probably the simplest way of going about it. Thanks VonSkippy!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct