Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to send mail using postfix, I have set up all the things, the mail is going, I have set up the email using my domain i.e. When When I am using the following code

ehlo xyz
mail from:<>
rcpt to:<>
Subject:Test mail from postfix

This mail is going to inbox of pqe, but the sender address is, then what is the use of this or this mail from ?/

share|improve this question

Try out this :-

ehlo xyz
Subject:Test mail from postfix

share|improve this answer
I have tried it out but this from and to section is sending as the body of mail – lord_linus Nov 29 '12 at 5:45
Its worked for me. Can you please tell me how did you send test mails ? – itzforu Nov 29 '12 at 20:43

That from header means that you will be telling the recipient mail server that this is the email where the message generated. However, that means that your must be listed in the SPF records of, which I'm sure isn't the case. That usually means either being unable to send the email or ending up in the junk/spam folder.

share|improve this answer
If I have set this from address at then the reciever should get the sender name as instead of – lord_linus Nov 28 '12 at 13:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.