Mail server

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Mail server
# 15  
Old 12-19-2014
Hi,

NO.

Quote:

Is etc/postfix/virtual is correct:?
Code:
user@vpc2a user

You must use the comlete email address...

Code:
user@vpc2avpc2a.wi.zut.edu.pl   user

Regards,
xabbu
# 16  
Old 12-19-2014
I've set up
Code:
user@vpc2a.wi.zut.edu.pl   user

not

Code:
user@vpc2avpc2a.wi.zut.edu.pl   user

and then

Code:
sudo postmap /etc/postfix/virtual

and

Code:
sudo service postfix restart

Then I sent email to user@vpc2a.wi.zut.edu.pl and got error:
Code:
Delivery to the following recipient failed permanently:

     user@vpc2a.wi.zut.edu.pl

Technical details of permanent failure:
DNS Error: Address resolution of vpc2a.wi.zut.edu.pl. failed: Domain name not found

----- Original message -----

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=g9NWLIEuUp5BC0pQqwHXC/XCY2NxbvapX7CYix3Uw/c=;
        b=qljNxG/Ry6TlQKGx6gqroGoXItzCLxcsC76+DYrIlmJErYtwYPM3ukdR8x/3Hh7+oT
         Bm9WQxTX+5qeF5cbwBTbVYZh57nyRrkUWe4uz9Q+d/xLvHJOKjy8GT+xRWAop/F6OFEf
         Wi/OnRpRHHBdgOK5TlMCa86ectLsM5oTmLfGd1Mm47TjR/umYTlU4OImB8pBGJapRKMf
         3yYILDZGnlG0afVq1g8n41hgk/55HPT5AbJxNipCP65HA6fCva1v5CJ0KihmacLWYh0E
         jIZcIF+QHK2HYXvtURiIZykLvnyQsJ9DTeZPeYkXpyAfsImZ5qwElvGPNLIs2W5psnZq
         Zt3A==
MIME-Version: 1.0
X-Received: by 10.194.77.201 with SMTP id u9mr6245565wjw.41.1418980390752;
 Fri, 19 Dec 2014 01:13:10 -0800 (PST)
Received: by 10.194.38.73 with HTTP; Fri, 19 Dec 2014 01:13:10 -0800 (PST)
Date: Fri, 19 Dec 2014 10:13:10 +0100
Message-ID: <CAJ9sEkNSTZYV9hoSPeRsfM35+V4_6v_zB+NHkkCHAfWGFnYQ5w@mail.gmail.com>
Subject: Test
From: michal sabat <budrys.ms@gmail.com>
To: user@vpc2a.wi.zut.edu.pl
Content-Type: multipart/alternative; boundary=047d7bfceb442257f3050a8e1e62

Test

---------- Post updated at 04:26 AM ---------- Previous update was at 04:15 AM ----------

I run this comand:

Code:
echo "Test mail from postfix" | mail -s "Test Postfix" budrys.ms@gmail.com

and got this mail:
Code:
user <user@vpc2a>
10:20 (4 minuty temu)

do mnie 
Test mail from postfix

# 17  
Old 12-19-2014
Hi,

you should post the complete Errormail.
So the Problem is, you try to send an email from your VM to google,
and the google server checks your domain, this does not exist so you can't send emials from you VM without correct the external DNS server, or you must rewrite your hostname of the VM to one which exist in the DNS.

Regards,
xabbu
# 18  
Old 12-19-2014
Quote:
Originally Posted by xabbu
Hi,

you should post the complete Errormail.
So the Problem is, you try to send an email from your VM to google,
and the google server checks your domain, this does not exist so you can't send emials from you VM without correct the external DNS server, or you must rewrite your hostname of the VM to one which exist in the DNS.

Regards,
xabbu
OK. So what should I do?
# 19  
Old 12-19-2014
You can use masquerade_domains in your main.cf.

Code:
masquerade_domains = wi.zut.edu.pl

But you are unable to receive mails from google because google.
So your emailaddress will be:


user@wi.zut.edu.pl


And if you reply to this address google will send the mail to user@wi.zut.edu.pl which is not your Server.

Regards,
xabbu
# 20  
Old 12-19-2014
Add
Code:
masquerade_domains = wi.zut.edu.pl

to main.cf

Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = vpc2a
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = vpc2a.wi.zut.edu.pl, localhost, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
masquerade_domains = wi.zut.edu.pl


Sent email to user@wi.zut.edu.pl and got error:
Code:
This is the mail system at host zimbra.wi.zut.edu.pl.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<user@wi.zut.edu.pl>: wi.zut.edu.pl

# 21  
Old 12-19-2014
The host zimbra.wi.zut.edu.pl will reject the mail, but why will the mail send to this host?

Did you try to send the mail to google?

And please post the complete message, the reason why the mail was rejected is missing.

Regards,
xabbu
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to send mail using PHP mail function On apache server.?

Hello, I am using centos-6.2 I have apache server,php5 on my system and I want to send mail using sendmail on my system. when I try to send mail from shell that time mail is succesfully sent to respective address() but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies

2. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

3. UNIX for Dummies Questions & Answers

Minimal Mail Server Setup for Local Mail Transfer

I am trying to get stored mail out of an old mail client. I figured that the easiest way to do it is with IMAP by logging in with both clients. I can copy the mail to the server from the old mail client, and back down into the new mail client. Rather than using a real mail account on the... (2 Replies)
Discussion started by: nixie
2 Replies

4. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

5. HP-UX

[Solved] How do I configure Unix Mail Server to use another Mail Exchange Server

We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies

6. UNIX for Advanced & Expert Users

How to relay mail to mail server from Unix ?

Hi, I need to send email notifications from Unix/Linux box to users using mailx. In these Unix/Linux boxes mail is not configured however we are having mail server configured in our LAN. Could you please provide instructions to configure relay in these boxes so that we can relay our mails... (3 Replies)
Discussion started by: sourabhsharma
3 Replies

7. Shell Programming and Scripting

script to read mail on a mail server

Hi All, Is there any way Unix shell script can directly read a mail on a mail server (for eg. abc@xyz.com) and save it as a text file in a unix directory ? Thanks PRKS ---------- Post updated at 08:37 AM ---------- Previous update was at 08:36 AM ---------- I am using ksh (1 Reply)
Discussion started by: PRKS
1 Replies

8. Solaris

identify the mail server for mail command

Hi , I am new to unix , i am using the mail and mailx command to send the mail .How come i will know the my mail command using which server as mail box.. Please help me .. Thanks in advance (1 Reply)
Discussion started by: julirani
1 Replies

9. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies
Login or Register to Ask a Question