be0b
![]() |
|
|
|
|
|||||||
| Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello all,
I have a FreeBSD 9.0 configured as a multi-use server. I decided for fun and learning I would try to use the sendmail services that is offered, then when I get that going good I would add Dovecot and webmail services. I can send with sendmail quite well to services such as Yahoo and Gmail, and was easy to setup. However I am confused on how to configure it to recieve e-mail. This system is setup as a gate DNSMasq as well as IPFW running and two network cards. One card faces my local ISP, and the other faces my home network. I also have a subdomain from FreeDNS as well I have tried to e-mail direct to my public IP address as well as my FreeDNS name, and I get nothing. I have read about MX Records and all that, and that is when I get lost. I can't find a good example how to set it up with my type of setup, and I have no clue how to go about MX Records. Could somebody toss some hints my way? Thanks! Dana |
|
#2
|
||||
|
||||
|
Look at /var/log/maillog. Does it show the mail going out? Coming in?
|
|
#3
|
|||
|
|||
|
It shows main going out, but nothing coming in. I tried both direct IP and subdomain.
Dana |
|
#4
|
|||
|
|||
|
1) Setup your server to handle email for your domain
Add yourdomain.com to /etc/mail/local-host-names and the email address you want to /etc/mail/virtusertable /etc/mail/local-host-names Code:
yourdomain.com Code:
@yourdomain.com error:550 User unknown me@yourdomain.com mylocaluser Rebuild the config files - Code:
# cd /etc/mail # make install restart The below command is extremely useful when you are working with sendmail and will confirm it is set up correctly locally. It should say the email address is deliverable to a local user and specify the user you added in the config above. Code:
# sendmail -bv me@yourdomain.com me@yourdomain.com... deliverable: mailer local, user mylocaluser Make sure port 25 is allowed through your firewall (if you are running one) and if you have a NAT router you should also forward port 25 to your server. Go to www.mxtoolbox.com and put your public IP address into their diagnostics tab to make sure the server is accessible on the Internet. You may get a few warnings about the reverse DNS (which you should get fixed eventually) but just make sure it connects for now. If you get an open relay warning (which you shouldn't with a default Sendmail config) turn Sendmail off immediately and fix that first. This will confirm that the Internet can connect to your SMTP server. 3) Point email for yourdomain.com at your server In BIND speak, you should have the following DNS configured on your domain, where 1.2.3.4 is your public IP: Code:
yourdomain.com IN MX 5 mail.yourdomain.com. mail.yourdomain.com IN A 1.2.3.4 Last edited by usdmatt; July 30th, 2012 at 16:28. Reason: probably get told off for putting filenames in [B] instead of [FILE] :) |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| console log says: backup kernel: backup sendmail: fatal: usage: sendmail | makdaddy8888 | Web & Network Services | 1 | June 28th, 2012 05:27 |
| cannot open /etc/mail/mailer.conf, using /usr/libexec/sendmail/sendmail as default MT | sjap | Web & Network Services | 20 | January 21st, 2012 15:16 |
| Using sendmail or sendmail from the ports? | HL1234 | Installation and Maintenance of FreeBSD Ports or Packages | 3 | December 17th, 2010 20:37 |
| [Solved] sendmail | qpai | General | 6 | August 24th, 2010 19:26 |
| Freebsd 7 GStreamer problems - no sound + linux->fbsd compile problems | int80 | General | 0 | December 23rd, 2008 20:13 |