Receive Mail from Any Domain

Receive Mail from Any Domain

Receive mail from any domain I have a mail server whose domain name is "vrk.com" and a user named "vinod" in it... All the mails send to "[email protected]" comes into the mail box /home/vinod/mbox Can i store mails addressed to "[email protected]" in this same mail box i.e /home/vinod/mbox...or into another catch all kind of user which catches all the up vote 1 mails regardless of the domain???? is it possible...i am using Postfix.... down vote favorite mail postfix asked Feb 4 '11 at 18:32 edited Feb 4 '11 at 18:52 shareimprove this question Vinod K 1335 2 Answers active oldest votes You can't capture emails addressed to yahoo.com since Yahoo's MX records don't point to your server, so they'll never get routed through your postfix service. If you're trying to create a catchall for a specific domain what you'll need to do is create a Virtual Domain file for postfix sudoedit /etc/postfix/virtual up vote 0 In the virtual file add the following: down vote accepted @vrk.com vinod Replace @vrk.com with the name of the domain you want to create the catch-all with (in your question this is where yahoo.com goes - however, as mentioned prior, you can't actually use yahoo.com as a valid domain since Yahoo's mail doesn't route to you) and the vinod part should be replaced with the email username that the catch-all should go to. Once you've created this file you'll need to encode it. That is done simply with the following: postmap /etc/postfix/virtual This does all the jazz (encoding, validating, etc) that Postfix needs in order to read it. To finish things up you'll want to add some lines to the configuration file and restart postfix Open the configuration file with sudoedit /etc/postfix/main.cf and add this line to the bottom virtual_alias_maps = hash:/etc/postfix/virtual Then the restart with sudo service postfix restart! answered Feb 4 '11 at 19:25 shareimprove this answer Marco Ceppi♦ 19.9k1072121 he opened a separate question for which this is the correct and complete answer. you might want to repost it [here][1] [1]: askubuntu.com/questions/24883/… – Call me V Feb 5 '11 at 4:36 In my case the mail server is local...not connected to internet...so yahoo.com would be just like any-other domain...right??....so it should work... – Vinod K Feb 5 '11 at 4:41 .its working....All the mails...from domains added in virtual file...like this "@yahoo.com root"....arrives....but not inn root mailbox but in nobodys mailbox....any idea why????..can i change it to make it come in root mail box??? or shall i create another user in the mail server and give it that mail box name?????...i think i did that with my mail box name i.e vinod....but only security mails were coming... – Vinod K Feb 5 '11 at 5:06 If you want to consolidate email from various POP3 accessible servers you can use the fetchmail package to fetch the email and deliver it to your server. For freemail up vote 1 services like yahoo you will likely need to enable POP for the address you wish to down vote fetch. Documentation on configuring fetchmail will likely be in /usr/share/doc/fetchmail or by web at 'http://localhost/doc/fetchmail`. http://askubuntu.com/questions/24828/receive-mail-from-any-domain?rq=1 How to set up a mail server correctly? up vote 5 down I have read a number guides on setting up a mail server, but none of them vote favorite seems to work completely. 1 My Requirements: I want to send and receive mails to and from all domains. (i.e., yahoo,gmail,aol,etc.) I only need real system users. Note: I am running Ubuntu server edition. setup mail-server edited Nov 26 '12 at asked Jul 5 '11 at 15:52 15:43 shareimprove this question Jorge Castro karthick87 23.3k50222446 7,898958141 1 Answer active oldest votes Open a terminal and type sudo tasksel install mail-server That will give you a fully functional mailserver with sane defaults. up vote 7 down For more information on how to setup a more customized solution, refer to the vote accepted Ubuntu Server Guide for 12.04: https://help.ubuntu.com/12.04/serverguide/email-services.html How do you setup system email to send to a Gmail account? up vote 3 Often when I'm working on a terminal, I'll see the "you have new mail in..." down vote message. I know I can see this mail by looking in my system's mail folder, but this is favorite inconvenient. Also, if the message is important, such as a notice about low system 1 resources, or drive problems, or a failed cron job, I may not see that message or check the system's mail folder for weeks or more. How can I set it up so that all these messages get sent to a real email service, like Gmail, which I check daily? email mail asked Aug 24 '11 at 13:26 shareimprove this question Cerin 8243930 1 Answer active oldest votes See this: Users can control their own mail delivery by specifying destinations in a file called .forward in their home directories. So, when you do this: echo "[email protected]" > ~/.forward up vote 2 down vote the mails should be forwarded to the e-mail you've specified (in this case, accepted [email protected]) answered Aug 24 '11 at 14:01 shareimprove this answer Piskvor 60439 But you also need to be certain that the messages will be received. most IPs from residential ISPs from which email is sent from (i.e. the sending server 1 originates at a residential IP) get marked as spam and/or ignored by people. You may be able to make it work, but the issue is then dealing with spam. – The Lord of Time Aug 24 '11 at 14:43 @The Evil Phoenix: I'm not suggesting to send this mail to just some random guy out there - I have the forwarding set to my regular mail inbox, so that the 1 mail intended for me goes somewhere where I'll see it (I did whitelist the equivalent of [email protected], but that's about it). On a side note, SMTP is a best-effort protocol - you can never be completely certain the messages will be delivered. – Piskvor Aug 24 '11 at 14:56 @The Evil One, This is my problem, as I get my internet through Comcast or Verizon. So getting sendmail to send email is easy. Getting sendmail to send 1 email and get it to reach the recipient is hard, because both Comcast and Verizon block outgoing email sent without authorization. – Cerin Sep 30 '11 at 18:32 On system's I've confirmed have working sendmail, adding ~/.forward doesn't seem to have any effect. – Cerin Oct 15 '11 at 14:54 How to configure mail (mailutils) to use Maildir schema by default? When I type mail command, I get a "No mail for USER" answer, but there's indeed mail (it's in /home/USER/Maildir/new) I guess it has something to do with the mailbox being in Maildir format, instead of mbox, but I don't know how to tell mailutils (specifically the mail command) which format to use. up vote 2 down vote mail favorite asked Feb 14 '11 at 12:33 edited Feb 14 '11 at 13:36 shareimprove this question luri 1,760927 1 Answer active oldest votes Afaik "mail" utility checks mails at the location given with the MAIL environment variable. Try this command: MAIL=/home/USER/Maildir/ mail (for sure, replace USER with something meaningful & valid). If that works, it seems that you should set MAIL variable you can do it in your bash profile / rc file for example. You can check up vote the content of your current MAIL variable with: echo $MAIL 3 down vote answered Feb 14 '11 at 13:04 edited Feb 14 '11 at 13:13 shareimprove this answer LGB 1,07439 I did not say nautilus, but mailutils (similar, tho :) ) – luri Feb 14 '11 at 13:08 Arghhh, I haven't slept too much, I must admit :) Okei, and sorry for the misread, however what I told (the other parts than nautilus, hehe) is still valid. But after this nasty mistake, I am not sure anymore :-@ – LGB Feb 14 '11 at 13:12 OK... if I set MAIL=/home/USER/Maildir/ mail, I get the right number of mails, and I can read them... BUT upon reading mails, 'mail' command will move them from /home/USER/Maildir to /home/USER/mbox.... wich doesn't exist, so, as a matter of fact, it did erase them (just test mails, so no worries). But shouldn't it realize where and how mail is stored (btw I have postfix and courier working). – luri Feb 14 '11 at 13:14 Update: my bad, it does not move mail to /home/USER/mbox folder. It's a file, that contains the mails in text format... But anyway it renders them unusable for Courier, that seeks a Maildir schema. – luri Feb 14 '11 at 13:42 "text file format"? Then it's the "standard" "unix mailbox" file format, which is just one file (as opposite to the maildir) containing every mails.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    23 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us